π Date: [August, 2025]
This project analyzes sales data from a small e-commerce platform using SQL.
The goal is to demonstrate advanced SQL skills such as joins, aggregations, CTEs, and window functions to extract meaningful business insights.
Customers_data.csv
β Customer details (ID, name, city, signup date)Products_data.csv
β Product details (ID, name, category, price)Orders_data.csv
β Orders placed by customers (ID, product, quantity, date)
- SQL Joins (INNER JOIN, aggregations)
- Common Table Expressions (CTEs)
- Window Functions (RANK, Running Totals)
- Business-Oriented Query Writing
- Data Analysis & Reporting
- Who are the top spending customers across all cities?
- Which cities contribute the most to total revenue
- What are the daily sales trends and cumulative growth over time?
- Which customers shop across multiple product categories?
- What are the most popular products in each city?
- Which product categories drive the most revenue? (extra since you have more categories now)
- π Top Customers: Ava Sharma, Ananya Iyer, and Rahul Mehta are the highest spenders.
- π Top Cities: Mumbai and Delhi generate the most revenue overall.
- π Sales Trends: Daily sales are steady with cumulative revenue showing consistent growth.
- ποΈ Multi-Category Buyers: 8 customers shop across multiple categories, led by Ava Sharma.
- ποΈ Popular Products by City: Laptops dominate Mumbai, Smartphones lead Delhi, T-Shirts top Bangalore.
- π¦ Category Revenue: Electronics contribute ~55% of revenue, making them the main driver.
Customers_data.csv
Products_data.csv
Orders_data.csv
SQL_queries.sql
README.md
(this file)
- Import the CSVs into your SQL database (PostgreSQL, MySQL, or SQLite).
- Run queries from
SQL_queries.sql
. - Explore insights or modify queries to extend the analysis.
Nidhi Devrani
- π§ nidhidevrani01@gmail.com
- π LinkedIn