PIZZA SALES
ANALYSIS
Using
SQL
and MySQL database management system
Presented by Soumen Das
We have 4 tables to analyze this data -
order_details orders pizzas
pizza_types
Retrieve the total number of orders placed.
Output:
Calculate the total revenue generated from pizza sales.
Output:
Identify the highest-priced pizza.
Using LIMIT function
Output:
Alternative (using window function) - without using LIMIT function
Identify the most common pizza size ordered.
Output:
List the top 5 most ordered pizza types along with their quantities.
Output:
Join the necessary tables to find the total quantity of each pizza
category ordered
Output:
Determine the distribution of orders by hour of the day
Output:
Find the category-wise distribution of pizzas
Output:
Group the orders by date and calculate the average number of
pizzas ordered per day.
Output:
alternate using subquery
Determine the top 3 most ordered pizza types based
on revenue.
Output:
Calculate the percentage contribution of each pizza
type to total revenue
Output:
revenue contribution from each pizza by pizza name
Output:
Analyze the cumulative revenue generated over time.
- use of aggregate window function (to get the cumulative sum)
Output:
Determine the top 3 most ordered pizza types based on
revenue for each pizza category
Output:
THANK YOU
Follow me on Linkedin