Skip to content

Online store

A mid-size home goods store selling on its website, app and a marketplace. Orders from January 2024 to June 2025.

Query it in the playground

customers

One row per customer account. Key: customer_id. 150 rows in the larger version, 70 in the smaller.

customer_idintUnique id.
full_nametextName on the account.
emailtext, nullableNULL when the customer never gave one (marketplace buyers).
countrytextTwo-letter country code.
signup_datedateDay the account was created.
referral_sourcetext, nullableorganic, paid_search, social, referral or email. NULL when unknown.

products

The catalog. Key: product_id. 36 rows in the larger version, 24 in the smaller.

product_idintUnique id.
product_nametextDisplay name.
categorytextKitchen, Home, Outdoors, Books, Beauty or Toys.
list_pricenumeric(10,2)Current list price in USD.
launched_ondateFirst day on sale.

orders

One row per order. Key: order_id. 700 rows in the larger version, 300 in the smaller.

order_idintUnique id.
customer_idintWho placed it.
ordered_attimestampWhen it was placed (UTC).
statustextcompleted, cancelled or refunded.
channeltextweb, app or marketplace.
shipping_feenumeric(10,2)Shipping charged, USD.
coupon_codetext, nullableCoupon used, NULL if none.

order_items

One row per product in an order. Key: order_id, product_id. 1,266 rows in the larger version, 563 in the smaller.

order_idintThe order.
product_idintThe product.
quantityintUnits bought.
unit_pricenumeric(10,2)Price paid per unit, after discounts, USD.

returns

Items sent back. Key: return_id. 79 rows in the larger version, 32 in the smaller.

return_idintUnique id.
order_idintThe original order.
product_idintThe product returned.
returned_ondateDay the return arrived.
quantityintUnits returned.
reasontext, nullabledamaged, wrong_item, not_as_described or changed_mind. NULL when not given.

Questions on this database