Skip to content

BlladeRunner/superstore-sql-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›’ Superstore Sales Analysis (SQLite + SQL)

Overview

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.

Dataset

  • 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 by setup_superstore.sql)
  • Key columns: OrderDate (YYYY-MM-DD), Sales (REAL), Profit (REAL), Discount (0–1), Category, SubCategory, Segment, Region, CustomerName, ProductName, ...

How to reproduce

# 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

About

SQL analysis on Sample Superstore (SQLite)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published