Optimizing Food Delivery Analysis Using MySQL
This SQL-based analysis project focuses on understanding and improving food delivery operations using a sample dataset from Swiggy — a leading online food delivery platform in India. It includes advanced SQL queries to derive business insights from data related to restaurants, delivery time, ratings, food types, and customer feedback.
To enhance business decision-making by analyzing key metrics such as:
-
Delivery time
-
Food type preferences
-
Customer ratings
-
Restaurant pricing
-
Area and city-wise performance
This project leverages MySQL to write clean, optimized queries for data retrieval, manipulation, and creation of new feedback data structures.
| Column Name | Description |
|---|---|
ID |
Unique identifier for each record |
Area |
Area/locality of the restaurant |
City |
City in which the restaurant is located |
Restaurant |
Name of the restaurant |
Price |
Average price per order |
Avg_ratings |
Average customer rating |
Total_ratings |
Total number of ratings received |
Food_type |
Types of cuisines served |
Address |
Detailed address of the restaurant |
Delivery_time |
Time taken to deliver the order (in minutes) |
-
City-wise restaurant count where delivery time > 60 minutes.
-
All unique food types offered.
-
Filtered restaurant listings from Koramangala with price between 200–400 and ratings > 4.
-
List of restaurants serving Chinese cuisine.
-
Total number of restaurants per city.
-
Restaurants in Bangalore with more than 100 total ratings.
-
Top 5 restaurants with the highest average ratings.
-
Restaurants in either Koramangala or Indiranagar.
- Average delivery time for restaurants serving Biryani.
-
Delete all restaurants where price < 200.
-
Update delivery time to 45 mins for restaurants with more than 500 ratings.
-
Create and populate a new
customer_feedbacktable with constraints and sample data.
-
SQL (MySQL)
-
DDL & DML operations
-
Filtering, Aggregation, Joins, and Subqueries
This project demonstrates practical SQL skills used in real-world data analytics:
-
Identifying performance bottlenecks
-
Filtering restaurant options by multiple criteria
-
Manipulating data and creating new tables
-
Delivering insights that can guide operational improvements for food delivery platforms