- Analyzed 81,777 Swiggy restaurant records using MySQL.
- Cleaned and transformed raw restaurant data.
- Explored restaurant locations, cuisine trends, ratings, and pricing.
- Identified data quality issues and potential cost anomalies.
- Documented findings with SQL queries and visual evidence.
This project analyzes 81,777 Swiggy restaurant records using MySQL to identify patterns in restaurant locations, cuisine categories, ratings, pricing, and the relationship between cost and rating.
The project demonstrates practical SQL skills including data cleaning, transformation, aggregation, filtering, grouping, and business-oriented analysis.
- Records: 81,777 restaurant records
- Database: MySQL
- Raw table:
swiggy - Cleaned table:
swiggy_cleaned
- Restaurant ID
- Restaurant Name
- Location
- Cuisine
- Rating
- Rating Count
- Cost
- License Number
- Restaurant Link
- Address
The raw restaurant data contained rating and cost values stored as text.
The swiggy_cleaned table was created to:
- Convert restaurant ratings into numeric values
- Convert currency-formatted cost values into numeric values
- Handle missing or placeholder rating values
- Preserve the original raw dataset for reference
The project includes analysis of:
- Restaurant distribution by location
- Popular cuisine categories and combinations
- Location-wise average restaurant ratings
- Highest-cost restaurant records
- Overall rating distribution
- Cost ranges compared with average ratings
- Business insights from the analyzed data
- Bikaner had the highest number of restaurant records among the analyzed locations, with 1,440 records.
- Indian was the most frequently occurring individual cuisine category, with 3,595 records.
- The highest average location rating in the analysis was 4.22.
- The largest rating group was 4.0–4.4, containing 15,679 records.
- The ₹500+ cost group had the highest average rating among the analyzed cost ranges at 4.06.
- A recorded cost of ₹300,350 for KOHINOOR HOTEL was identified as a potential data anomaly requiring validation.
The cost-versus-rating analysis identifies differences between price groups but does not establish that higher cost directly causes higher ratings.
Swiggy-SQL-Analysis/
│
├── README.md
├── swiggy_analysis.sql
├── findings.md
├── 01-location-analysis.png
├── 02-rating-distribution.png
└── 03-cost-vs-rating.png
- MySQL
- MySQL Workbench
- SQL
- Git
- GitHub
- SQL Data Cleaning
- Data Transformation
- Aggregate Functions
- GROUP BY and HAVING
- Filtering with WHERE
- Sorting and Ranking
- CASE Statements
- Regular Expressions
- Business Data Analysis
- Data Quality Checking
- Install MySQL and MySQL Workbench.
- Create a database named
swiggy_analysis. - Import the original Swiggy CSV dataset into a table named
swiggy. - Open
swiggy_analysis.sqlin MySQL Workbench. - Run the data-cleaning query to create
swiggy_cleaned. - Run the analysis queries to reproduce the findings.
| File | Description |
|---|---|
| SQL Analysis | Data cleaning and analysis queries |
| Detailed Findings | Analysis results and observations |
| Location Analysis | Restaurant distribution by location |
| Rating Distribution | Restaurant rating analysis |
| Cost vs Rating | Pricing and rating comparison |
Harshitha C. Software Developer | Aspiring Data Analyst



