Skip to content

Analyzed pizza sales data using MySQL to extract insights on revenue, order trends, and popular pizzas through structured SQL queries.

Notifications You must be signed in to change notification settings

pragya-1228/Pizza--Sales--SQL--Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Pizza--Sales--SQL--Analysis

πŸ“Š Project Overview

This project focuses on analyzing pizza sales data using MySQL to extract meaningful business insights. By writing and executing SQL queries, I explored order patterns, revenue trends, and product performance.


πŸ—‚οΈ Database Structure

The project uses the following tables:

Table Name Description
pizzas Contains details about each pizza (ID, type, size, price)
order_details Contains information about orders and quantities of each pizza
orders Contains order date and time details
pizza_types Contains type, category, and ingredients of pizzas

βœ… Analysis Performed

πŸ”Ή Basic Analysis

  • Total number of orders placed
  • Total revenue generated from pizza sales
  • Identification of the highest-priced pizza
  • Most common pizza size ordered
  • Top 5 most ordered pizza types by quantity

πŸ”Ή Intermediate Analysis

  • Total quantity of each pizza category ordered (using joins)
  • Distribution of orders by hour of the day
  • Category-wise distribution of pizzas
  • Average number of pizzas ordered per day (grouped by date)
  • Top 3 most ordered pizza types based on revenue

πŸ”Ή Advanced Analysis

  • Percentage contribution of each pizza type to total revenue
  • Cumulative revenue generated over time
  • Top 3 most ordered pizza types based on revenue within each pizza category


βš’οΈ Tools & Technologies Used

  • MySQL
  • SQL
  • (Optional) ER Diagram Tools: dbdiagram.io, Draw.io
  • (Optional) Presentation: PowerPoint or Google Slides

🎯 Key Learnings

βœ” Writing efficient SQL queries
βœ” Performing data joins, aggregations, and groupings
βœ” Using SQL to derive business insights
βœ” Understanding the importance of data-driven decision-making


πŸ“Œ How to Run the Project

  1. Import the SQL scripts into your MySQL database.
  2. Run the queries in the following order:
    • table_creation.sql
    • data_insertion.sql (if applicable)
    • Analysis queries from basic_queries.sql, intermediate_queries.sql, advanced_queries.sql
  3. Review results and insights.

πŸ“’ Conclusion

This project demonstrates how SQL can be effectively used to analyze real-world sales data and provide actionable business insights. It can be extended further with dashboards or visualizations in tools like Tableau or Power BI.


About

Analyzed pizza sales data using MySQL to extract insights on revenue, order trends, and popular pizzas through structured SQL queries.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published