Pizza Sales Analysis Solution
Pizza Sales Analysis Solution
NIT JAMSHEDPUR
02 PIZZA_TYPES.CSV
This file categorizes the pizzas further by providing pizza_type_id,
name, category, and ingredients. It helps in identifying the type and
category of each pizza, along with a detailed list of ingredients.
03 ORDERS.CSV
This file captures the order details, including order_id, date, and time. It is essential
for analyzing when orders were placed and understanding sales trends over time.
04 ORDER_DETAILS.CSV
This file connects orders with specific pizzas, containing order_details_id, order_id,
pizza_id, and quantity. It provides a detailed view of what was ordered in each transaction
and is crucial for analyzing order patterns and customer preferences.
Q1. Retrieve the total number of orders
placed.
SQL QUERY
OUTPUT
Q2.Calculate the total revenue generated
from pizza sales.
SQL QUERY
OUTPUT
Q3.Identify the highest-priced pizza.
SQL QUERY
OUTPUT
Identify the most common pizza size
ordered.
SQL QUERY
OUTPUT
List the top 5 most ordered pizza types
along with their quantities.
SQL QUERY
OUTPUT
Join the necessary tables to find the total
quantity of each pizza category ordered.
SQL QUERY
OUTPUT
Determine the distribution of orders by
hour of the day.
SQL QUERY
OUTPUT
Join relevant tables to find the category-
wise distribution of pizzas.
SQL QUERY
OUTPUT
Group the orders by date and calculate the
average number of pizzas ordered per day.
SQL QUERY
OUTPUT
Determine the top 3 most ordered pizza
types based on revenue.
SQL QUERY
OUTPUT
THANK YOU
Github Link -
https://github.com/Kishankumar2100/Pizza-
Sales-Analysis