SQL practice / Netflix
Free SQL interview practice

Netflix SQL interview questions. All free.

3 SQL practice questions in our Netflix collection, part of our 188-question bank across 23 companies. Write SQL against practice datasets and get checked in your browser. Free, no card or trial.

No account needed to start. Draft SQL stays in this browser; create an account to sync solved history.

1 Easy · 1 Medium · 1 Hard

Independent practice resource. Not affiliated with or endorsed by Netflix.

Inside the Netflix set

SQL topics you can practice.

These topics come from the questions in this set. Pick one to open the matching problems.

Easy · 5 min

VIP Users by Total Watch Hours

Identify active members who watched more than 50 hours of content during March 2026. Return member_id, subscription_type, country, and total_hours (rounded to 2 decimal places), sorted by total_hours in descending order.

Tables: viewing_history, members
Medium · 10 min

Average Rating Per Show Per Month

Calculate the average rating and number of ratings for each show by month. Return title_name, year_month (formatted as YYYY-MM), avg_rating (rounded to 2 decimals), and rating_count. Only include show (not movie) content. Filter to months/shows with at least 10 ratings. Order by year_month descending, then avg_rating descending.

Tables: titles, title_ratings
Hard · 15 min

Content Completion Rates by Genre and Subscription Type

Analyze content completion rates by genre and subscription type. A view is considered 'completed' if minutes_watched is at least 90% of the title's total_duration_minutes. Return genre, subscription_type, completion_rate (percentage, rounded to 2 decimals), total_views, and completed_views. Only include genre/subscription combinations with at least 100 total views. Order by completion_rate in descending order.

Tables: titles, viewing_history, members
The bank

Netflix SQL questions. Start typing SQL.

3 Netflix problems, each with its own dataset. Click one and you’re in the workspace, free, right in your browser.

How it works

Solve in the browser. Checked instantly.

  1. 1
    Pick a problemPractice questions for data science and analytics interviews, each with its own tables, difficulty, and time target.
  2. 2
    Write and run SQLA full database engine loads in the tab. No setup, nothing to install — query the practice dataset immediately.
  3. 3
    Submit for a verdictPass and move to the next problem. Miss and you unlock the expected output and a reference solution.
VIP Users by Total Watch HoursNetflix

Your dataset

viewing_history

viewing_id (INTEGER) · member_id (INTEGER) · title_id (INTEGER) · start_time (TIMESTAMP) · minutes_watched (INTEGER) · device_type (VARCHAR)

members

member_id (INTEGER) · subscription_type (VARCHAR) · account_signup_date (DATE) · country (VARCHAR) · is_active (BOOLEAN)

Try this Netflix question
3
Netflix questions
188
questions in the full bank
$0
free access

Solve one now. Build your solved history.

Start free, no account needed. When you create one, everything you’ve solved comes with you — solved marks, streaks, and concept ratings on your dashboard.

Practice Netflix SQL free

Create a free account to sync solved history →