DataBrighten

    Sample retail store sales data

    1,000 × 15rows × columns in the 1,000-row file

    Updated 3 November 2026. Fictional U.S. businesses and people, generated with a fixed seed.

    textnumberdateyes/no
    Largest file10,000rows; also 100 and 1,000
    Columns15with a data dictionary below
    Dates2024-01-01 – 2024-01-20range in the file
    LicenceCC0synthetic, free for any use

    What is in it

    Each row is one department in one of ten fictional stores on one trading day, from 1 January 2024: receipts, items sold, gross sales, discounts, net sales, cost of goods, gross profit and margin. Weekends and the holiday season are busier, and margins differ by department, so a store-by-department report has something to show.

    More practice tables like this one: all 22 newer sample datasets.

    First rows

    point at a column to light it up

    record_idtextsale_datedatestore_idtextcitytextstatetextregiontextdepartmenttexttransactionsnumberunits_soldnumbergross_salesnumberdiscountsnumbernet_salesnumbercost_of_goodsnumbergross_profitnumbergross_margin_pctnumber
    RS5000012024-01-01ST01New YorkNYNortheastGrocery54513068029.6517.647511.965730.421781.5423.7
    RS5000022024-01-01ST02ChicagoILMidwestGrocery3137905219.03170.385048.654104.48944.1718.7
    RS5000032024-01-01ST03HoustonTXSouthGrocery2977504780.28139.344640.943537.911103.0323.8
    RS5000042024-01-01ST04DallasTXSouthGrocery3678996051.97151.495900.484607.851292.6321.9
    RS5000052024-01-01ST05AtlantaGASouthGrocery45312647470.66166.037304.635472.281832.3525.1
    RS5000062024-01-01ST06MiamiFLSouthGrocery52814729751.5361.559389.957252.382137.5722.8
    RS5000072024-01-01ST07Los AngelesCAWestGrocery55014258959.09203.518755.586550.282205.325.2
    RS5000082024-01-01ST08SeattleWAWestGrocery45110617010.47323.846686.635050.351636.2824.5
    RS5000092024-01-01ST09DenverCOWestGrocery42711647327.37230.817096.565458.731637.8323.1
    RS5000102024-01-01ST10BostonMANortheastGrocery43110446947.03248.086698.955266.671432.2821.4

    Net sales by store

    USD, 1,000-row file

    ST06$985,936ST01$901,489ST07$836,474ST05$821,096ST08$797,684ST09$764,291ST10$703,347ST04$561,313ST02$470,751ST03$465,227
    Show as a table
    store_idvalue
    ST06$985,936
    ST01$901,489
    ST07$836,474
    ST05$821,096
    ST08$797,684
    ST09$764,291
    ST10$703,347
    ST04$561,313
    ST02$470,751
    ST03$465,227
    Source: DataBrighten synthetic data (seed 42), computed from the file you can download here.

    Data dictionary

    ColumnTypeMeaning
    record_idtextRow number
    sale_datedateTrading day (one row per store, department and day, from 2024-01-01)
    store_idtextST01 to ST10
    citytextStore city
    statetextStore state
    regiontextCensus region
    departmenttextGrocery, Apparel, Home, Electronics or Beauty
    transactionsintegerNumber of sales receipts
    units_soldintegerItems sold
    gross_salesdecimalSales before discounts (USD)
    discountsdecimalMarkdowns and coupons (USD)
    net_salesdecimalgross_sales - discounts (USD)

    Practice questions

    answers checked in SQL and in Python

    Net sales by store?

    ST06 $985,935.85; ST01 $901,489.32; ST07 $836,473.66; ST05 $821,095.58; ST08 $797,684.24; ST09 $764,290.80; ST10 $703,347.26; ST04 $561,312.65; ST02 $470,750.51; ST03 $465,226.59

    Excel

    =SUMIFS(L:L,C:C,"ST01")

    SQL

    SELECT store_id, ROUND(SUM(net_sales),2) AS n FROM retail_store_sales GROUP BY store_id ORDER BY n DESC, store_id

    File: retail-store-sales-1000

    Gross margin % by department (total gross profit / total net sales)?

    Apparel 46.0%; Beauty 44.1%; Home 38.1%; Grocery 23.9%; Electronics 22.0%

    Excel

    =SUMIFS(N:N,G:G,"Grocery")/SUMIFS(L:L,G:G,"Grocery")

    SQL

    SELECT department, ROUND(100.0*SUM(gross_profit)/SUM(net_sales),1) AS m FROM retail_store_sales GROUP BY department ORDER BY m DESC, department

    File: retail-store-sales-1000

    Total discounts given in the Electronics department?

    $192,082.90

    Excel

    =SUMIFS(K:K,G:G,"Electronics")

    SQL

    SELECT ROUND(SUM(discounts),2) FROM retail_store_sales WHERE department = 'Electronics'

    File: retail-store-sales-1000