This project contains SQL queries for exploring trends in the used car market, such as vehicle availability, fuel-type analysis, and year-over-year insights. Ideal for demonstrating proficiency in SQL-based data analysis and business understanding.
The database includes a table named car_dekho
with fields like:
year
fuel
- Additional assumed columns:
car_name
,model
, etc.
- Total car listings over time
- Breakdown by fuel type (Petrol, Diesel, CNG)
- Identifying high-availability years
- Filtering by custom time frames (e.g., 2015β2023)
- MySQL (compatible with other dialects)
- SQL queries for aggregation, filtering, and grouping
- Import your dataset and create the
car_dekho
table. - Run
car_sales_analysis.sql
in your SQL environment. - Modify queries as needed to adapt to your dataset structure.
βFind the total number of petrol cars listed in 2020.β
SELECT COUNT(*) FROM car_dekho WHERE year = 2020 AND fuel = 'petrol';