Retail Sales Analysis – SQL Project

πŸ›  Tools Used: MySQL
πŸ“… Project Date: May 2025
πŸ“ Skills Demonstrated: SQL Joins, Window Functions, Aggregations, EDA

πŸ“¦ Project Overview

In this project, I used SQL to explore and analyze a fictional retail store’s sales data. The goal was to answer key business questions around product performance, monthly revenue trends, and top-selling categories using structured queries.

The project simulates how a retail business would use data to drive decisions like stock planning and promotional targeting.

πŸ” Business Questions Answered

  1. What are the monthly sales trends?

  2. Which products and categories generate the most revenue?

  3. What’s the average order value?

  4. How do different customer segments behave?

πŸ”§ Key SQL Concepts Used

  • INNER JOIN, LEFT JOIN
  • GROUP BY, ORDER BY, HAVING
  • Window functions: ROW_NUMBER(), RANK()
  • CASE WHEN for conditional analysis
  • Aggregate functions: SUM(), AVG(), COUNT()

🧠 Insights Generated

  • πŸ’° The top 10 products contributed over 40% of total sales

  • πŸ“ˆ Monthly sales peaked in Q4, suggesting seasonal demand

  • πŸ›’ Average order value: β‚Ή3,200

  • 🧍 Most purchases were made by customers aged 25–35

πŸ“„ Sample Query Snippet

SELECT product_name, SUM(total_amount) AS revenue
FROM sales
JOIN
products ON sales.product_id = products.id
GROUP BY product_name
ORDER BY revenue DESC
LIMIT 10;

πŸ“Œ Deliverables

  • 10+ optimized SQL queries

  • Result tables exported to CSV

  • Final report with business insights

πŸ”— GitHub Repository

πŸ™‹ About Me

I’m Satyendra Yadav – a Data Analyst with a background in teaching mathematics and a passion for uncovering stories behind the numbers. I specialize in SQL, Power BI, Excel, and Python to solve real-world problems through data.

πŸ“ View All Projects |πŸ“„ Download Resume

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top