To perform SQL-based data analysis on sales, customer, and product data using Microsoft SQL Server. This guided project involves writing multiple SQL scripts for business reporting, segmentation, revenue analysis, and performance tracking.
- The project is structured around a Sales Database, with tables like
Products,Sales, andCustomers. - Multiple SQL scripts were developed for:
- Customer segmentation
- Revenue tracking and accumulation
- Time-based trend exploration
- Category-wise contribution analysis
- Performance metric evaluation
- consolidated reporting
- This project was done as part of a guided learning module, using structured sample data.
- SQL Server Management Studio (SSMS)
- Microsoft SQL Server (MSSQL)
- Flat File Import Tool
- Data format:
.csv
-
** Change Over Time Analysis.sql**
- Analyzed sales and customer behavior trends across months or years.
- Used
DATEPART(),GROUP BY, and filtering by time windows.
-
** Cumulative Analysis.sql**
- Calculated running totals using window functions like
SUM() OVER (ORDER BY...). - Helped track progressive revenue growth or customer activity.
- Calculated running totals using window functions like
-
** Part to Whole Analysis.sql**
- Measured category-wise or segment-wise contribution to overall metrics.
- Used percent-of-total logic and windowed
SUM()functions.
-
** Performance Analysis.sql**
- Evaluated key performance metrics such as delivery efficiency and sales conversion.
- Used conditional logic with
CASEand derived columns.
-
** Data Segmentation (Part 1 & 2).sql**
- Grouped customers by revenue bands and cost bands.
- Two scripts handled different segmentation angles.
-
** Customer Report.sql**
- Created a final customer-level summary report via a SQL
VIEW. - Combined data from multiple tables into one unified output.
- Useful for reporting or exporting to dashboards.
- Created a final customer-level summary report via a SQL
scripts/: All SQL scripts for analysisdata/: Raw.csvdata files imported into SQLREADME.md: Overview of the project
- This project was guided and may resemble similar public exercises.
- The data and scripts are intended for learning purposes.