Project Description
This project focuses on analyzing a Pizza Sales Dataset using SQL to uncover insights about sales performance, customer preferences, and revenue patterns. The database contains multiple tables, including order details, pizza information, categories, and pricing.
By writing SQL queries, the project explores sales trends across different dimensions such as time, category, and pizza type. It also applies advanced analytical techniques like cumulative revenue calculation and percentage contribution analysis.
๐ฏ Objectives
Understand database structure and relationships between tables.
Perform data exploration to answer business questions.
Use SQL to calculate:
Total orders and revenue
Best-selling pizzas and categories
Order distribution by time of day
Average daily pizza sales
Revenue trends and contribution analysis
๐ Dataset Structure
The dataset consists of the following key tables:
orders โ order ID, date, and time of each order
order_details โ order line items with pizza ID and quantity
pizzas โ pizza ID, size, price, and pizza type ID
pizza_types โ pizza type ID, pizza name, and category
๐ SQL Tasks ๐น Basic Analysis
Count total number of orders placed
Calculate total revenue generated
Find the highest-priced pizza
Identify the most common pizza size
List top 5 most ordered pizza types
๐น Intermediate Analysis
Find total quantity of pizzas sold per category
Analyze order distribution by hour of the day
Find category-wise distribution of pizzas
Calculate average pizzas ordered per day
Identify top 3 pizzas by revenue
๐น Advanced Analysis
Calculate percentage contribution of each pizza type to total revenue
Analyze cumulative revenue growth over time
Find top 3 pizzas by revenue within each category
โ Expected Outcomes
By completing this project, you will:
Strengthen your skills in SQL joins, aggregations, and grouping
Learn time-based and revenue-based analysis
Apply advanced SQL concepts like window functions and percentage contribution
Gain the ability to transform raw sales data into meaningful business insights