Skip to content

End-to-end SQL project analyzing pizza sales data using MySQL. Includes CTEs, window functions, joins, and business insights for retail analytics.

Notifications You must be signed in to change notification settings

Vishal-499/SQL-Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ• Pizza Sales Analysis β€” SQL Portfolio Project

Welcome to my end-to-end Pizza Sales Analysis project, built entirely using MySQL. This project demonstrates how raw sales data can be transformed into actionable business insights through structured querying, advanced SQL techniques, and thoughtful problem-solving.


πŸ“¦ Project Overview

  • Domain: Food & Beverage / Retail Analytics
  • Tools Used: MySQL
  • Data Source: CSV files imported into a relational database
  • Techniques Applied: CTEs, Window Functions, Aggregations, Joins, Grouping, Filtering, Ranking

🎯 Business Objectives

This project aims to answer key business questions for SHODWE Pizza Resto, such as:

  • Which pizza types contribute most to total revenue?
  • What is the cumulative revenue trend over time?
  • Which pizzas are top performers in each category?
  • What are the busiest hours for orders?
  • Which pizza sizes are most popular?
  • What are the top 5 most ordered pizza types?

🧠 SQL Techniques Used

  • Common Table Expressions (CTEs) for layered logic
  • Window Functions (DENSE_RANK, SUM OVER) for ranking and cumulative analysis
  • Joins across multiple tables (orders, orders_details, pizzas, pizza_types)
  • Group By & Aggregations for summarizing data
  • Date & Time Functions (HOUR(), ORDER BY) for temporal analysis

πŸ“Š Key Insights

Insight Description
πŸ’° Revenue Contribution Calculated % contribution of each pizza category to total revenue
πŸ“ˆ Cumulative Revenue Tracked revenue growth over time using window functions
πŸ† Top Performers Identified top 3 pizzas per category based on revenue
⏰ Peak Hours Analyzed order distribution by hour of day
πŸ• Popular Types Listed top 5 most ordered pizza types
πŸ“ Size Preference Determined most commonly ordered pizza size


πŸ“Œ How to Run

  1. Import the CSV data into MySQL tables (orders, orders_details, pizzas, pizza_types)
  2. Run the queries from pizza_sales_analysis.sql sequentially
  3. Review insights and validate results using sample outputs or visualizations

πŸ™‹β€β™‚οΈ About Me

I'm Vishal, a Data Analyst Bootcamp student passionate about SQL, Python, and turning raw data into meaningful stories. This project reflects my growing expertise in SQL optimization, query structuring, and business-focused analytics.


πŸ“¬ Contact

Feel free to connect or reach out for collaboration, feedback, or portfolio reviews:

  • πŸ’Ό LinkedIn

About

End-to-end SQL project analyzing pizza sales data using MySQL. Includes CTEs, window functions, joins, and business insights for retail analytics.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published