/pizza-shop-analysis

SQL for Data Analysis using MySQL - analyzing pizza sales

Data Analysis on Pizza Sales Using SQL

Dataset ->

The dataset used for this analysis contains information about pizza orders, including customer details, order dates, pizza types, quantities ordered, prices, and delivery information. It may also include additional data such as delivery times, and order statuses.

SQL Queries ->

The analysis involves writing SQL queries to extract, transform, and analyze data from the dataset. Sample SQL queries for various objectives include:

Retrieve Basic Information:

  1. Retrieve the total number of orders placed.
  2. Calculate the total revenue generated from pizza sales. Pizza Analysis:
  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 tables to find the total quantity of each pizza category ordered.
  7. Determine the top 3 most ordered pizza types based on revenue.
  8. Calculate the percentage contribution of each pizza type to total revenue. Order Analysis:
  9. Determine the distribution of orders by hour of the day.
  10. Group orders by date and calculate the average number of pizzas ordered per day.
  11. Analyze the cumulative revenue generated over time.
Screenshot 2024-05-05 at 2 10 02 PM