Role: Data Analyst / SQL Analyst
Dataset: Synthetic / anonymized demo data created for portfolio use.
Stack: SQLite, SQL, CTEs, joins, window functions, pandas, matplotlib
A retail/e-commerce business needs to understand revenue trends, category performance, repeat customers, top customers and country-level performance from normalized relational data.
Built a reproducible SQL analysis project using customers, products and orders tables. The project includes database creation, analytical SQL queries, CSV exports and a revenue trend chart.
-
JOINs across normalized tables
-
GROUP BY aggregations
-
CTE-based analysis
-
Window functions
-
Ranking top customers/products
-
Monthly revenue analysis
-
How does revenue change by month?
-
Which product categories generate the most revenue?
-
Who are the top customers?
-
What share of customers are repeat buyers?
-
Which countries generate the highest revenue?
sql/analysis_queries.sql— 5 business queries
-
results/query_*.csv— query outputs -
results/business_analysis.sqlite— reproducible local database -
results/monthly_revenue_sql.png— revenue visualizationpython -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate pip install -r requirements.txt python src/main.py
- Built SQL analysis across normalized customer, product and order tables using joins, aggregations, CTE logic and window functions.
-
Analyzed monthly revenue, repeat customer rate, category performance, top customers and country-level revenue efficiency.
