This project performs retail sales analysis using MySQL. It helps in understanding customer behavior, spending habits, product trends, and seasonal sales variations. The database vanshu_sales
stores transaction data, and SQL queries are used to extract meaningful business insights.
The project contains a single table retail_sale
, which holds transactional data.
Column Name | Data Type | Description |
---|---|---|
Transaction_ID |
BIGINT NOT NULL PRIMARY KEY |
Unique transaction identifier |
Dates |
DATE |
Date of the transaction |
Customer_ID |
VARCHAR(10) |
Unique customer identifier |
Gender |
VARCHAR(10) |
Customer's gender (Male/Female) |
Age |
INT |
Customer's age |
Product_Category |
VARCHAR(10) |
Product category purchased |
Quantity |
INT |
Number of items bought |
Price_per_Unit |
INT |
Price per unit of the product |
Total_Amount |
INT |
Total transaction amount (Quantity * Price_per_Unit ) |
- β Check for NULL values to ensure data completeness.
- β Count total transactions recorded in the dataset.
- π° Total revenue generated from all sales.
- π Average transaction amount spent per purchase.
- π·οΈ Unique customers count to measure customer base.
- π Top spending customers by total purchases and total amount spent.
- π Daily, Weekly, Monthly, and Yearly sales trends to identify patterns.
- π₯ Highest sales revenue date to find peak transaction days.
- π Sales trends by season (Winter, Spring, Monsoon, Autumn).
- π Peak sales hours or days of the week to determine when customers buy most.
- πΈ Spending habits by gender (average spending per purchase).
- π Average age of purchasing customers (overall & by gender).
- ποΈ Most frequently purchased product category.
- π¦ Average price per unit for different product categories.
- π Highest average quantity per transaction by product category.
- π·οΈ Most frequently purchased product category.
- Clone this repository to your local machine:
git clone https://github.com/your-username/vanshu-sales-analysis.git