A compact SQL portfolio project on the classic Sample Superstore dataset.
Goal: identify top customers, profitable products/segments, regional performance, time trends, and the impact of discounts on margins.
- Source:
sample_superstore.csv
(public Superstore sample) - Size: ~10k rows (your import may vary slightly)
- Date range:
<fill after running> e.g., 2014-10-10 β 2017-12-30
- Target table:
superstore
(built bysetup_superstore.sql
) - Key columns:
OrderDate (YYYY-MM-DD), Sales (REAL), Profit (REAL), Discount (0β1), Category, SubCategory, Segment, Region, CustomerName, ProductName, ...
# Build/refresh the SQLite DB and load the CSV (CLI is required for .mode/.import)
sqlite3 superstore.db ".read setup_superstore.sql"
# Run analysis queries in VS Code with SQLTools:
# open queries.sql β select a statement β Ctrl+E, Ctrl+E