Pizza Sales Using SQL
Pizza Sales Using SQL
SQL
Leveraging Data Insights for Improved
Decision Making
Presented By: Sana Arshad
Introduction to Pizza Sales Analysis
● Objective: Understand how SQL can be used to analyze pizza sales
data.
● Importance: Analyzing sales data can help identify trends, optimize
inventory, and enhance marketing strategies.
● Agenda:
○ Overview of Dataset
○ SQL Queries for Analysis
○ Insights and Recommendations
Overview of Dataset
● Source: GitHub
● Contents:
● Tables:
○ Pizzas,Pizza_types, Order_details, orders
○
● Fields:
○ order_details_id, order_id, pizza_id, quantity
○ order_id, order_date, order_time
○ pizza_type_id, name, category, ingredients
○ pizza_id, pizza_type_id, size, price
SQL Queries for Analysis
1. Retrieve the total number of orders placed.
2. Calculate the total revenue generated from pizza sales.
3. Identify the highest-priced pizza.
4. Identify the most common pizza size ordered.
5. List the top 5 most ordered pizza types along with their quantities.
6. Join the necessary tables to find the total quantity of each pizza category
ordered.
7. Determine the distribution of orders by hour of the day.
8. Join relevant tables to find the category-wise distribution of pizzas.
9. Group the orders by date and calculate the average number of pizzas
ordered per day.
10. Determine the top 3 most ordered pizza types based on revenue.
11. Calculate the percentage contribution of each pizza type to total revenue.
Retrieve the total number of orders placed.
Calculate the total revenue generated from pizza sales.
Identify the highest-priced pizza
Identify the most common pizza size ordered.
List the top 5 most ordered pizza types along with their quantities.
Join the necessary tables to find the total quantity of each pizza category
ordered.
Determine the distribution of orders by hour of the day.
Join relevant tables to find the category-wise distribution of pizzas.
Group the orders by date and calculate the average number of pizzas
ordered per day.
Determine the top 3 most ordered pizza types based on revenue.
Calculate the percentage contribution of each pizza type to total revenue.
Insights and Recommendations
Insight 1: Monthly Sales Trend
◆
Conclusion
Summary: SQL analysis provides valuable insights into pizza
sales trends.
Thank You!