SQL case study analyzing pizza orders, runner performance, deliveries, customer behavior, and business insights using MySQL.
This project contains SQL solutions for the Pizza Runner Case Study from the 8 Week SQL Challenge.
The aim of this project is to analyze pizza orders, customer preferences, delivery performance, and runner efficiency using SQL.
- Analyze customer orders
- Measure runner performance
- Evaluate delivery success
- Understand customer preferences
- Generate business insights using SQL
- MySQL
- SQL
- GitHub
This case study contains the following tables:
Stores runner registration details.
| Column | Description |
|---|---|
| runner_id | Runner ID |
| registration_date | Registration Date |
Stores customer pizza orders.
| Column | Description |
|---|---|
| order_id | Order ID |
| customer_id | Customer ID |
| pizza_id | Pizza Ordered |
| exclusions | Excluded Toppings |
| extras | Extra Toppings |
| order_time | Order Time |
Stores delivery information.
| Column | Description |
|---|---|
| order_id | Order ID |
| runner_id | Runner ID |
| pickup_time | Pickup Time |
| distance | Delivery Distance |
| duration | Delivery Duration |
| cancellation | Cancellation Status |
Contains pizza names.
Contains recipe information.
Contains topping details.
- SELECT
- WHERE
- GROUP BY
- ORDER BY
- INNER JOIN
- LEFT JOIN
- Aggregate Functions
- CASE WHEN
- CTE (Common Table Expressions)
- Window Functions
- COUNT()
- SUM()
- AVG()
- RANK()
- ROW_NUMBER()
- String Functions
- Data Cleaning
- Total pizzas ordered
- Unique customer orders
- Successful deliveries by runners
- Number of each pizza type delivered
- Customer ordering patterns
- Peak ordering hours
- Delivery distances and durations
- Average delivery time
- Runner performance analysis
- Customer modifications (extras/exclusions)
- Revenue calculations
- Business recommendations
Pizza-Runner-SQL-Case-Study/
├── README.md
├── Pizza_Runner_SQL_CaseStudy.sql
└── screenshots/
Through this project, I learned:
- SQL Data Cleaning
- Joins
- Aggregate Functions
- Window Functions
- Common Table Expressions (CTEs)
- Business Analytics
- Customer Behavior Analysis
- Delivery Performance Analysis
Sonal Kumari
Aspiring Data Analyst
⭐ If you found this project useful, feel free to star this repository.