Skip to content

Shivmalge/Pizza_Sales_Data_Analysis_Using_SQL_EXCEL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ• Pizza Sales Data Analysis

Overview :

This project showcases an end-to-end sales data analysis for a pizza restaurant using SQL and Excel. The goal is to extract meaningful insights and key performance indicators (KPIs) from transactional data to support data-driven business decisions.

πŸ” Key Highlights

  • 🎯 Objectives:

    The analysis aims to uncover:

    • Sales patterns by time and category
    • Customer ordering behavior
    • High and low performing products
    • Opportunities for menu optimization and targeted promotions
  • Tools Used:

    • SQL: Data cleaning, aggregation, and KPI calculations
    • Microsoft Excel: Visualization, dashboard creation, and trend analysis
  • πŸ“ Project Structure

    • Data/ – Sample anonymized raw sales data
    • SQL Queries/ – Contains all SQL scripts used for querying and KPI generation
    • Excel Dashboard/ – Interactive dashboards and charts visualizing the key insights
  • KPIs Analyzed:

    • πŸ“ˆ Total Revenue
      • SELECT SUM(total_price) As Total_Revenue from pizza_sales;

        image

    • πŸ’° Average Order Value (AOV)
      • SELECT SUM(total_price) / COUNT(DISTINCT order_id) as Average_Order_Value from pizza_sales;

        image

    • πŸ• Total Pizzas Sold
      • SELECT SUM(quantity) As Total_Pizza_Sold from pizza_sales;

        image

    • 🧾 Average Pizzas per Order
      • SELECT CAST(CAST(SUM(quantity) As DECIMAL(10,2)) / CAST(COUNT(DISTINCT order_id) AS DECIMAL(10,2)) AS DECIMAL(10,2))as Average_Pizza_Order from pizza_sales

        image

    • πŸ“… Daily Trend of Total Orders
      • SELECT DATENAME(DW,order_date) as order_day, COUNT(DISTINCT order_id) as Total_Orders from pizza_sales GROUP BY DATENAME(DW,order_date)

        image

    • ⏰ Hourly Trend of Total Orders
      • SELECT DATEPART(HOUR,order_time) As order_hours, COUNT(DISTINCT order_id) as Total_orders from pizza_sales GROUP BY DATEPART(HOUR,order_time) ORDER BY DATEPART(HOUR,order_time)

        image

    • πŸ“ % of Sales by Pizza Size
      • select pizza_size,sum(total_price) as total_price, CAST(((SUM(total_price) * 100) / (select sum(total_price) from pizza_sales)) as DECIMAL(10,2)) as percentage from pizza_sales group by pizza_size

        image

    • πŸ• Total Pizzas Sold by Pizza Category (Classic, Veggie, etc.)
      • SELECT pizza_category, SUM(quantity) as Total_Quantity_Sold FROM pizza_sales WHERE MONTH(order_date) = 2 GROUP BY pizza_category ORDER BY Total_Quantity_Sold DESC

        image

    • πŸ“Š % of Sales by Pizza Category
      • SELECT pizza_category, CAST(SUM(total_price) AS DECIMAL(10,2)) as total_revenue, CAST(SUM(total_price) * 100 / (SELECT SUM(total_price) from pizza_sales) AS DECIMAL(10,2)) AS PCT FROM pizza_sales GROUP BY pizza_category

        image

    • πŸ† Top 5 Best Sellers by Total Pizzas Sold
      • select top 5 pizza_name, sum(quantity) as total_pizzas_sold from pizza_sales group by pizza_name order by total_pizzas_sold desc

        image

    • πŸ“‰ Bottom 5 Best Sellers by Total Pizzas Sold
      • select top 5 pizza_name, sum(quantity) as total_pizzas_sold from pizza_sales group by pizza_name order by total_pizzas_sold

        image

πŸ“Š Dashboard Review:

The dashboard created using Excel provides a clear and interactive overview of key business metrics, helping stakeholders make informed decisions quickly. Here's a breakdown of the insights covered:

πŸ”‘ Key Metrics and Insights

  • πŸ’° Total Revenue

    • Displays overall revenue generated across all orders.

    • Highlights the restaurant's financial performance at a glance.

  • 🧾 Average Order Value (AOV)

    • Indicates the average revenue per order.

    • Useful for identifying upsell/cross-sell opportunities.

  • πŸ• Total Pizzas Sold

    • Shows the volume of pizzas sold.

    • Helps gauge customer demand and popular selling days.

  • πŸ“¦ Average Pizzas per Order

    • Gives an idea of order size and customer buying behavior.
  • πŸ“… Daily Trend of Total Orders

    • A time-series chart showing how orders fluctuate day by day.

    • Useful for spotting peak days or drop-offs.

  • ⏰ Hourly Trend of Total Orders

    • Reveals the most popular hours for orders.

    • Helps optimize staffing and kitchen operations during peak hours.

  • πŸ“ % of Sales by Pizza Size

    • Visual breakdown (e.g., pie chart) showing which pizza sizes (Small, Medium, Large) drive most sales.

    • Aids in inventory planning and pricing strategies.

  • πŸ• Total Pizzas Sold by Pizza Category

    • Compares categories like Classic, Veggie, and Supreme.

    • Useful for menu refinement and marketing focus.

  • πŸ“Š % of Sales by Pizza Category

    • Highlights revenue contribution by category.

    • Helps in identifying the most profitable segments.

  • *πŸ† Top 5 Best Sellers by Total Pizzas Sold

    • Lists the most popular pizzas based on units sold.

    • Great for promotion and bundling strategies.

  • πŸ“‰ Bottom 5 Best Sellers by Total Pizzas Sold

    • Identifies underperforming pizzas.

    • Useful for potential discontinuation or revamp

πŸŽ₯ Dashboard Demo

Watch the video below to explore how key KPIs and trends are visualized in the Excel dashboard.

2025-05-29.20-39-45.mp4

Conclusion :

1️⃣ Buisest Days: Orders are Highest on weekends, Friday/Saturday evenings

2️⃣ Buisest Times: There are Maximum order from 12-01 PM & after 4-8 PM

3️⃣ Pizza Category: Classic category contributes to Maximum sales and total orders

4️⃣ Pizza Size: Large size Pizza contributes to Maximum sales

5️⃣ Best Sellers: Classic Deluxe & Chicken pizzas are Best sellers & revenue generators

6️⃣ Worst Seller: The Brie Carre is at Bottom in both Orders and Revenue

Project By - Shivsharan Malage

Github

Linkedin

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published