This project presents a comprehensive SQL-based analysis of Netflix Movies and TV Shows data. Using SQL queries, the project answers real-world business questions, uncovers meaningful insights, and demonstrates practical data analysis techniques commonly used in data analyst roles.
The project covers data exploration, aggregation, filtering, ranking, window functions, Common Table Expressions (CTEs), and string manipulation to solve business problems using SQL.
- Analyze the distribution of Movies and TV Shows.
- Identify the most common content ratings.
- Explore content by release year, country, duration, and genre.
- Answer business-driven analytical questions using SQL.
- Demonstrate SQL skills required for Data Analyst interviews and projects.
Source: Netflix Movies and TV Shows Dataset (Kaggle)
https://www.kaggle.com/datasets/shivamb/netflix-shows
DROP TABLE IF EXISTS netflix;
CREATE TABLE netflix
(
show_id VARCHAR(5),
type VARCHAR(10),
title VARCHAR(250),
director VARCHAR(550),
casts VARCHAR(1050),
country VARCHAR(550),
date_added VARCHAR(55),
release_year INT,
rating VARCHAR(15),
duration VARCHAR(15),
listed_in VARCHAR(250),
description VARCHAR(550)
);Determine the distribution of Movies and TV Shows available on Netflix.
Identify the most frequently occurring rating for each content type.
Retrieve all movies released in a selected year (Example: 2020).
Analyze which countries contribute the highest amount of Netflix content.
Find the movie having the maximum duration.
Retrieve recently added Netflix content.
Example: Rajiv Chilaka.
Identify long-running TV shows.
Analyze genre-wise distribution.
Calculate yearly contribution of Indian content.
Retrieve all documentary titles.
Identify records with missing director information.
Analyze actor-specific content.
Determine actors with the highest number of appearances.
Categorize titles as:
- Bad → Description contains "Kill" or "Violence"
- Good → Otherwise
- SELECT
- WHERE
- GROUP BY
- ORDER BY
- LIMIT
- Aggregate Functions
- CASE WHEN
- Common Table Expressions (CTEs)
- Window Functions (RANK)
- String Functions
- Date Functions
- UNNEST
- STRING_TO_ARRAY
- SPLIT_PART
- Subqueries
- Movies significantly outnumber TV Shows on Netflix.
- TV-MA is one of the most common content ratings.
- The United States and India contribute a large share of Netflix content.
- Drama, International Movies, and Comedies dominate the platform.
- Several TV Shows have more than five seasons.
- Keyword-based categorization helps identify mature or violent content.
- SQL Query Writing
- Data Cleaning
- Business Problem Solving
- Data Aggregation
- Window Functions
- CTEs
- Analytical Thinking
- Data Exploration
- PostgreSQL
Netflix_SQL_Project/
│
├── Netflix Dataset.csv
├── Business Problems.sql
├── Solutions.sql
├── README.md
├── logo.png
└── Screenshots/
Computer Science & Information Technology Student
Aspiring Data Analyst passionate about SQL, Power BI, Python, and Data Visualization.
This project is part of my Data Analytics portfolio and demonstrates practical SQL skills through real-world business case studies using the Netflix dataset.
I am continuously building projects focused on SQL, Power BI, Python, and Business Intelligence to strengthen my analytical and problem-solving skills.
- GitHub: https://github.com/Kar205tik
- LinkedIn: (Add your LinkedIn profile URL here)
This project is intended for educational and portfolio purposes.
