Garden Shop SQL Practice Dataset
Orders, products, inventory, suppliers, and customers for store-operations SQL practice.
- Tables
- 6
- Rows
- 130
- Size
- Small
- Level
- Beginner
- Domain
- Ecommerce
- Formats
- CSV · SQL
Download this dataset, free
No account, no email, no attribution required:
dedicated to the public domain under CC0 1.0, so commercial use and
redistribution are fine.
Open it in the browser playground, take the single garden_shop.sql file to load every table into PostgreSQL, MySQL, SQLite, DuckDB, or SQL Server, or grab the raw CSV files below.
Garden Shop is the main SQLShed business dataset. It connects customers, orders, order line items, products, categories, and suppliers, so it works well for practicing the joins and aggregate reports people write in real operational databases.
The data includes shipped, pending, processing, and cancelled orders; products with price and cost; inventory quantities; reorder levels; and a few intentional gaps such as null shipped dates and missing supplier email addresses. Those details make it useful for learning how SQL behaves when the data is imperfect.
Schema
Join conditions
- orders.customer_id = customers.customer_id
- order_items.order_id = orders.order_id
- order_items.product_id = products.product_id
- products.category_id = categories.category_id
- products.supplier_id = suppliers.supplier_id
Schema · Garden Shop View dataset schema 6 tables
One row per customer. Some customers have no phone on file.
One row per product, with price, cost, and inventory levels.
Lookup table of product categories.
One row per order. Unshipped orders have a null shipped_date.
One row per line item within an order.
One row per supplier. Some suppliers have no contact email.
Best for
- Multi-table joins from orders to line items and products.
- Revenue, margin, customer value, and inventory reports.
- NULL handling for unshipped orders and missing supplier contacts.
Starter questions
- Which products are below their reorder level?
- How much shipped revenue did each month produce?
- Which suppliers have the highest gross margin?
Practice lessons
More practice datasets
Customers, products, orders, line items, payments, and returns at realistic online-retail volume.
Movies, customers, and rental history for compact join, aggregate, and NULL practice.
Sessions, pageviews, events, users, and campaigns for funnel and attribution practice.
Channels, campaigns, ad groups, and two years of daily performance where every metric is a ratio.
Accounts, merchants, and two years of posted transactions with no stored balance to read off.