TGViewer
SQL Programming Resources SQL Programming Resources @sqlanalyst ยท 76.7K subscribers
Post #2605 3.91K
๐Ÿš€ SQL Project Series #11

Netflix Content Analytics ๐ŸŽฌ

Analyze movies and TV shows to uncover trends in content production, genres, ratings, countries, and audience preferences using SQL.

๐ŸŽฏ Business Objectives

โœ… Analyze the Netflix content library

โœ… Compare Movies vs TV Shows

โœ… Identify popular genres

โœ… Analyze content ratings

โœ… Track yearly content additions

โœ… Discover country-wise content trends

โœ… Measure content duration

โœ… Generate executive dashboards

๐Ÿ“‚ Step 1: Create Database

CREATE DATABASE netflix_db;
USE netflix_db;


๐Ÿ“‚ Step 2: Create Content Table

CREATE TABLE netflix_content (
show_id VARCHAR(20) PRIMARY KEY,
title VARCHAR(255),
content_type VARCHAR(20),
director VARCHAR(255),
country VARCHAR(100),
release_year INT,
date_added DATE,
rating VARCHAR(20),
duration VARCHAR(30),
genre VARCHAR(100)
);


๐Ÿ“‚ Step 3: Insert Sample Data

INSERT INTO netflix_content VALUES
('S1','Stranger Things','TV Show','The Duffer Brothers','United States',2016,'2022-01-10','TV-14','4 Seasons','Drama'),
('S2','Money Heist','TV Show','รlex Pina','Spain',2017,'2022-02-15','TV-MA','5 Seasons','Crime'),
('S3','Extraction','Movie','Sam Hargrave','United States',2020,'2022-03-01','R','116 min','Action'),
('S4','The Crown','TV Show','Peter Morgan','United Kingdom',2016,'2022-04-18','TV-MA','6 Seasons','Drama'),
('S5','Leo','Movie','Lokesh Kanagaraj','India',2023,'2024-01-20','UA','164 min','Action');


๐Ÿง  SQL Concepts You'll Practice

โœ” DDL and DML

โœ” Filtering and Sorting

โœ” Aggregate Functions

โœ” GROUP BY

โœ” HAVING

โœ” CASE WHEN

โœ” Date Functions

โœ” Window Functions

โœ” CTEs

โœ” Ranking Functions

๐Ÿ“Š Business KPIs You Can Build

๐Ÿ“ˆ Total Titles

๐Ÿ“ˆ Movies vs TV Shows

๐Ÿ“ˆ Content Added by Year

๐Ÿ“ˆ Content Added by Month

๐Ÿ“ˆ Content by Country

๐Ÿ“ˆ Top 10 Producing Countries

๐Ÿ“ˆ Genre Distribution

๐Ÿ“ˆ Most Popular Ratings

๐Ÿ“ˆ Content by Release Year

๐Ÿ“ˆ Oldest and Newest Titles

๐Ÿ“ˆ Average Movie Duration

๐Ÿ“ˆ Longest Movie

๐Ÿ“ˆ TV Shows by Number of Seasons

๐Ÿ“ˆ Top Directors by Number of Titles

๐Ÿ“ˆ Content Growth Trend

๐Ÿ“ˆ Rating-wise Distribution

๐Ÿ“ˆ Action vs Drama vs Comedy Analysis

๐Ÿ“ˆ Percentage of Movies vs TV Shows

๐Ÿ“ˆ Country-wise Content Contribution

๐Ÿ“ˆ Executive Content Dashboard

๐ŸŽฏ This project reflects the type of SQL analysis performed by media companies, streaming platforms, entertainment analysts, and business intelligence teams to understand content strategy and audience trends.

๐Ÿ’ก Double Tap โค๏ธ For More
  • โค 18
More from @sqlanalyst
  1. Oct 8, 2026๐ŸŽ“ ๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ผ๐—ณ๐˜ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ ๐˜„๐—ถ๐˜๐—ต ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ฒ๐˜€! ๐Ÿš€๐Ÿ”ฅ Upgrโ€ฆ
  2. Oct 7, 2026๐Ÿš€๐—ฃ๐—ฎ๐˜† ๐—”๐—ณ๐˜๐—ฒ๐—ฟ ๐—ฃ๐—น๐—ฎ๐—ฐ๐—ฒ๐—บ๐—ฒ๐—ป๐˜ ๐—ง๐—ฟ๐—ฎ๐—ถ๐—ป๐—ถ๐—ป๐—ด | ๐—•๐—ฒ๐—ฐ๐—ผ๐—บ๐—ฒ ๐—ฎ ๐—™๐˜‚๐—น๐—น๐˜€๐˜๐—ฎ๐—ฐโ€ฆ
  3. Oct 7, 2026SQL Interview Series โ€” Part 4 ๐Ÿ“Œ Question 4: Find the Highest Salary in Each Department Suโ€ฆ
  4. Oct 7, 2026๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ฃ๐—ผ๐˜„๐—ฒ๐—ฟ ๐—•๐—œ ๐—ณ๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜! ๐Ÿ”ฅ Learn Power BI through these FREE learninโ€ฆ
  5. Sep 29, 2026SQL Interview Series โ€” Part 2 ๐Ÿ“Œ Question 2: Find Duplicate Records Suppose you have an Emโ€ฆ
  6. Sep 29, 2026๐—™๐—ฅ๐—˜๐—˜ ๐—ฅ๐—ฒ๐˜€๐—ผ๐˜‚๐—ฟ๐—ฐ๐—ฒ๐˜€ ๐—ง๐—ผ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป ๐—”๐—œ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ๐Ÿš€ โ€‹ Explore 6 free resourceโ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’