0% found this document useful (0 votes)
149 views17 pages

Pizza Sales Using SQL

SqL queries

Uploaded by

Sana Arshad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
149 views17 pages

Pizza Sales Using SQL

SqL queries

Uploaded by

Sana Arshad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Analyzing Pizza Sales Using

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

Analysis: Identify seasonal variations and peak months.

Recommendation: Adjust marketing strategies and inventory levels accordingly.

Insight 2: Best Selling Pizza

Analysis: Determine which pizza is most popular among


customers.Recommendation: Promote the best-selling pizza through targeted
campaigns.


Conclusion
Summary: SQL analysis provides valuable insights into pizza
sales trends.

Next Steps: Implement recommendations to optimize sales


and enhance customer satisfaction.

Thank You!

You might also like