DataBrighten

    Sample e-commerce data

    1,000 × 13rows × 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
    Columns13with a data dictionary below
    Dates2024-01-01 – 2024-12-31range in the file
    LicenceCC0synthetic, free for any use

    What is in it

    Each row is one fictional online order in 2024: date, customer, ship-to state, device, traffic source, main category, items, order value after any discount code, shipping fee (free from $50), payment method and whether anything was returned. Clothing is returned most often.

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

    First rows

    point at a column to light it up

    order_idtextorder_datedatecustomer_idtextstatetextdevicetexttraffic_sourcetextcategorytextitemsnumberorder_valuenumberdiscount_codetextshipping_feenumberpayment_methodtextreturnedyes/no
    EC9100012024-11-28U02190TXMobileDirectHome & Kitchen132.615.99CardFALSE
    EC9100022024-01-30U02382OHMobilePaid searchBooks111.925.99CardFALSE
    EC9100032024-02-14U00634CADesktopSocialBooks223.575.99PayPalFALSE
    EC9100042024-08-25U01351MADesktopAffiliateElectronics5436.410Apple PayFALSE
    EC9100052024-07-15U00153LAMobileDirectBooks228.725.99CardFALSE
    EC9100062024-03-21U00059TNMobileOrganic searchBeauty381.260PayPalFALSE
    EC9100072024-08-05U01353ILMobileDirectBooks220.165.99CardFALSE
    EC9100082024-04-10U00492AZMobileSocialBeauty391.60CardFALSE
    EC9100092024-05-17U01417CTTabletDirectClothing3133.830CardFALSE
    EC9100102024-05-09U01299TNDesktopDirectHome & Kitchen256.32HOLIDAY200PayPalFALSE

    Order value by category

    USD, 1,000-row file

    Electronics$32,321Home & Kitchen$17,031Clothing$15,954Sports$9,087Beauty$7,113Toys$4,391Books$2,983
    Show as a table
    categoryvalue
    Electronics$32,321
    Home & Kitchen$17,031
    Clothing$15,954
    Sports$9,087
    Beauty$7,113
    Toys$4,391
    Books$2,983
    Source: DataBrighten synthetic data (seed 42), computed from the file you can download here.

    Data dictionary

    ColumnTypeMeaning
    order_idtextOrder number
    order_datedateOrder date (2024)
    customer_idtextCustomer number (2,500 customers)
    statetextShip-to state
    devicetextDesktop, Mobile or Tablet
    traffic_sourcetextHow the shopper arrived
    categorytextMain product category
    itemsintegerItems in the order
    order_valuedecimalMerchandise total after discount (USD)
    discount_codetextCode used, blank if none
    shipping_feedecimal0 for orders of $50 or more
    payment_methodtextCard, PayPal, Apple Pay or Gift card

    Practice questions

    answers checked in SQL and in Python

    Revenue and average order value by device?

    Mobile $52,308.33 (avg $88.36); Desktop $28,344.79 (avg $86.15); Tablet $8,226.13 (avg $104.13)

    Excel

    =SUMIFS(I:I,E:E,"Mobile") and =AVERAGEIFS(I:I,E:E,"Mobile")

    SQL

    SELECT device, ROUND(SUM(order_value),2) AS rev, ROUND(AVG(order_value),2) FROM ecommerce_orders GROUP BY device ORDER BY rev DESC

    File: ecommerce-orders-1000

    Return rate by category?

    Clothing 25.3%; Electronics 9.9%; Toys 6.3%; Home & Kitchen 5.7%; Beauty 4.9%; Sports 4.8%; Books 4.0%

    SQL

    SELECT category, ROUND(100.0*SUM(returned)/COUNT(*),1) AS pct FROM ecommerce_orders GROUP BY category ORDER BY pct DESC, category

    File: ecommerce-orders-1000

    How many orders used a discount code?

    222 orders

    Excel

    =COUNTA(J2:J1001)

    SQL

    SELECT COUNT(*) FROM ecommerce_orders WHERE discount_code IS NOT NULL

    File: ecommerce-orders-1000