- This project analyzes smartphone sales data to uncover insights on pricing, discounts, and consumer preferences using SQL.
- Dataset is obtained from this link: https://www.kaggle.com/datasets/yaminh/smartphone-sale-dataset/data
- Columns in this dataset:
Brand,Model,Color,Memory,Storage,Camera,Mobile,Rating,Selling_Price,Original_Price,Discount,discount_percentage - Skills used: SQL, data analysis, business insights
Here’s a snapshot of the dataset used in this project:
- Apple dominates the premium segment with the highest average selling price.
- Samsung covers all price categories, offering the widest product portfolio.
- Camera presence drives higher prices, showing its importance in buyer decisions.
- Aggregations (SUM, AVG, COUNT)
- Filtering & categorization (CASE, WHERE)
- Subqueries (phones above avg price, brand avg rating)
- Window functions (RANK() OVER (PARTITION BY ...))
- CTEs (WITH clause)
A. Basic Analysis
- How many brands, models, and total phones exist?
- How many phones per brand?
- What is the average selling price per brand?
- What are the Top 10 most expensive phone models?
B. Discount Analysis
- Which brand gives the highest average discount %?
- Which models have the highest discount %?
- How many phones were sold with vs without discounts?
C. Rating Analysis
- What is the average rating per brand?
- Which 10 models have the highest ratings?
- Which 10 models have the lowest ratings?
D. Feature-Based Analysis
- How many phones have ≥ 8GB RAM and 128GB storage?
- What is the average price by storage type?
- Do phones with cameras cost more than those without?
E. Advanced Analysis
- Which brands offer the highest average discount?
- What is the relationship between brand, avg price & avg rating?
- Which are the Top 3 revenue-contributing models per brand? (Window Function)
- Do higher discounts mean lower ratings?
- What are the price categories of phones?
- Which is the highest-rated phone in each brand?
- Which phones are priced above average selling price?
- How does a phone’s rating compare to its brand average?
README.md→ documentationbasic_analysis.sql→ descriptive queriesdiscount_analysis.sql→ discount-related queriesrating_analysis.sql→ ratings & reviewsfeature_insights.sql→ memory, storage, camera insightsadvanced_analysis.sql→ KPIs & deeper insights
