This project analyzes a retail company's sales and financial performance using structured SQL queries in MySQL.
The dataset (FINANCIALS table) includes:
- Product-level transaction records
- Columns: Segment, Country, Product, Discount Band, Units Sold, Gross Sales, COGS, Profit, Date, Month, Year
- Previewed data
- Checked row counts, nulls, and time range
- Explored unique segments, products, and countries
- Total revenue, cost, and profit
- Top countries by sales
- Highest profit product and top revenue segment
- Yearly and monthly sales trend
- Month with highest average profit
- Top-selling products by unit
- Profit margin and profitability insights
- Profit per unit sold
- Average discount by segment
- Best country-product combination for profit
Profit per Unit Sold (MySQL Workbench Screenshot)
- Database: MySQL
- Tool: MySQL Workbench
- Language: SQL
- Clone the repo
- Load the dataset into MySQL
- Run
sql/retail_analysis.sqlto explore and analyze
Musthaq Ahamed
LinkedIn
π§ mustaaquh@gmail.com