Dave-s-Portfolio

# Grocery Sales Analysis (SQL)

📌 Context

This project analyzes grocery sales data to uncover purchasing trends, highlight top-performing categories, and identify opportunities for inventory optimization.

🛠️ Techniques Used

📊 Process

  1. Data Cleaning
    • Removed duplicate transaction IDs
    • Standardized product category names
  2. Filtering
    • Focused on transactions within the last 6 months
    • Segmented by product category and store location
  3. Aggregation
    • Calculated total sales per category
    • Identified top 5 products by revenue

📷 Script Screenshots

Below are key SQL queries used in this project:

Data Cleaning Query
Data cleaning: Removing duplicate transaction IDs and standardizing product categories

Filtering Query
Filtering: Selecting transactions from the last 6 months and segmenting by location

Aggregation Query
Aggregation: Calculating total sales per category and identifying top products

Overview Output
Final results showing sales breakdown by category and top revenue drivers


📈 Results


🎯 Teaching Takeaway

This case study shows how cleaning, filtering, and aggregating grocery sales data can reveal actionable insights for inventory planning and category management.


Back to homepage