Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ• PizzaHut Sales Analysis using SQL

๐Ÿ“– Project Overview

This project focuses on analyzing PizzaHutโ€™s sales data using SQL to uncover key business insights.
The main goal is to explore sales performance, customer preferences, and product demand patterns by writing SQL queries ranging from basic to advanced complexity.

The analysis is performed on four main tables:

  • orders
  • order_details
  • pizzas
  • pizza_types

These tables are connected through foreign keys to ensure proper data relationships for analysis.


๐ŸŽฏ Project Objectives

  • Understand customer purchasing behavior
  • Analyze sales trends and revenue performance
  • Identify top-performing pizzas and categories
  • Generate data-driven business insights
  • Practice and apply SQL for real-world analytics

๐Ÿงฉ Database Structure

Tables Used:

Table Description
orders Contains order ID, date, and time
order_details Contains order details including pizza ID and quantity
pizzas Contains pizza size, price, and related pizza type
pizza_types Contains pizza name, category, and ingredients

Relationships:

  • orders ๐Ÿ”— order_details via order_id
  • order_details ๐Ÿ”— pizzas via pizza_id
  • pizzas ๐Ÿ”— pizza_types via pizza_type_id

๐Ÿงฎ SQL Analysis

๐Ÿ”น Basic Level

  • Retrieve total number of orders placed
  • Calculate total revenue generated from pizza sales
  • Identify the highest-priced pizza
  • Find the most common pizza size ordered
  • List the top 5 most ordered pizza types with quantities

๐Ÿ”ธ Intermediate Level

  • Find total quantity of each pizza category ordered
  • Determine distribution of orders by hour of the day
  • Category-wise distribution of pizzas
  • Group orders by date and calculate average pizzas ordered per day
  • Identify top 3 most ordered pizza types based on revenue

๐Ÿ”บ Advanced Level

  • Calculate percentage contribution of each pizza type to total revenue
  • Analyze cumulative revenue generated over time
  • Determine top 3 most ordered pizza types by revenue for each category

๐Ÿ’ก Key Insights

  • โ€œLargeโ€ size pizzas are the most frequently ordered
  • โ€œClassicโ€ and โ€œSupremeโ€ categories contribute the most to total revenue
  • Peak order time: 7 PM โ€“ 9 PM
  • The BBQ Chicken Pizza generated the highest revenue
  • Top 3 pizzas contributed over 25% of the total sales revenue

โš™๏ธ Tools & Technologies Used

  • SQL (MySQL) โ€“ Data querying and analysis
  • Excel / Power BI โ€“ Visualization (optional)
  • GitHub โ€“ Project hosting and version control

๐Ÿ“ซ Contact

Prakash Kumar Jha
๐Ÿ”— LinkedIn: linkedin.com/in/prakashjhax
๐Ÿ“ง Email: jhaprakashkumar122@gmail.com

About

SQL-based data analysis project on PizzaHut sales data, including basic, intermediate, and advanced queries to uncover business insights.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors