Skip to content

SQL case study on pizza sales: analyzing orders, revenue, product popularity, and time trends using joins, aggregations, and window functions.

Notifications You must be signed in to change notification settings

AK5615612/pizza-sales-sql-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ• Pizza Sales Analysis using SQL

πŸ“Œ Overview

This project analyzes a pizza sales dataset using SQL to uncover key business insights.
The analysis covers sales performance, revenue generation, ordering patterns, and product popularity.


πŸ“‚ Dataset

The dataset consists of 4 CSV files:

  • 🧾 orders.csv β†’ order_id, order_date, order_time
  • πŸ“Š order_details.csv β†’ order_id, pizza_id, quantity
  • πŸ• pizzas.csv β†’ pizza_id, pizza_type_id, size, price
  • πŸ§‚ pizza_types.csv β†’ pizza_type_id, name, category, ingredients

πŸ› οΈ Skills & Tools Used

  • SQL Concepts: Joins, Aggregations, Grouping, Ordering, Window Functions, Subqueries, CTEs
  • Tools: MySQL Workbench (for querying), Canva (for presentation)

πŸ”Ž Analysis Scope

Basic: total orders, revenue, highest-priced pizza, most common size, top 5 pizzas
Intermediate: category quantities, hourly order distribution, avg pizzas/day, top 3 pizzas by revenue
Advanced: % revenue by pizza, cumulative revenue, top 3 by revenue per category


πŸ“ˆ Key Insights

  • Certain pizza types & sizes dominate sales and revenue
  • Orders peak during specific hours, reflecting customer behavior
  • Some categories consistently outperform others in both quantity and revenue
  • SQL-driven insights help optimize menu, pricing, and inventory planning

About

SQL case study on pizza sales: analyzing orders, revenue, product popularity, and time trends using joins, aggregations, and window functions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published