Skip to content

This project showcases data analysis using pure SQL on a retail financial dataset. It includes queries for data exploration, sales and profit analysis, product performance, and advanced KPIs like profit margin and profit per unit. Ideal for data analyst portfolio work.

Notifications You must be signed in to change notification settings

mustaqahmd/Retail-SQL-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›οΈ Retail Sales Analysis using SQL

SQL

This project analyzes a retail company's sales and financial performance using structured SQL queries in MySQL.


πŸ“ Dataset Overview

The dataset (FINANCIALS table) includes:

  • Product-level transaction records
  • Columns: Segment, Country, Product, Discount Band, Units Sold, Gross Sales, COGS, Profit, Date, Month, Year

πŸ” Analysis Breakdown

πŸ§ͺ 1. Data Exploration

  • Previewed data
  • Checked row counts, nulls, and time range
  • Explored unique segments, products, and countries

πŸ’° 2. Sales & Profit Analysis

  • Total revenue, cost, and profit
  • Top countries by sales
  • Highest profit product and top revenue segment

πŸ“† 3. Time-Based Trends

  • Yearly and monthly sales trend
  • Month with highest average profit

πŸ“¦ 4. Product Performance

  • Top-selling products by unit
  • Profit margin and profitability insights

πŸ“Š 5. Advanced Insights

  • Profit per unit sold
  • Average discount by segment
  • Best country-product combination for profit

πŸ–ΌοΈ Sample Output

Profit per Unit Sold (MySQL Workbench Screenshot)

Profit Metrics


πŸ› οΈ Tech Stack

  • Database: MySQL
  • Tool: MySQL Workbench
  • Language: SQL

πŸ“Œ How to Use

  1. Clone the repo
  2. Load the dataset into MySQL
  3. Run sql/retail_analysis.sql to explore and analyze

πŸ“« Contact

Musthaq Ahamed
LinkedIn
πŸ“§ mustaaquh@gmail.com

About

This project showcases data analysis using pure SQL on a retail financial dataset. It includes queries for data exploration, sales and profit analysis, product performance, and advanced KPIs like profit margin and profit per unit. Ideal for data analyst portfolio work.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published