Search ⌘K
Netflix
Netflix

Foundations Track · Easy · 15 min

Streaming Device View Mix

The streaming analytics team wants a one-row device-family snapshot for recent viewing traffic. Count laptop events separately, roll phone and tablet into a ...

Foundations Track
Easy
15 min
query basics
aggregation

Company labels are directional practice context, not official interview guidance.

Timer 00:00
Back to practice

Objective

Practice query basics through a Netflix-tagged business scenario.

Approach

Use this track to lock in clean query structure, basic filtering logic, and confidence with grouped output.

Company context

Company labels are directional practice context, not official interview guidance.

Prereq: query basics
Prereq: filtering

The streaming analytics team wants a one-row device-family snapshot for recent viewing traffic. Count laptop events separately, roll phone and tablet into a single mobile bucket, and return laptop_views and mobile_views.

watch_events
view_id INT
user_id INT
device_type VARCHAR(20
view_iduser_iddevice_type
111laptop2024-02-01
212phone2024-02-01
313tablet2024-02-02
414laptop2024-02-03
515tv2024-02-03
Editor
SQL workspace

Run queries against the protected question data, then submit once the result shape looks right.

Sign in to run SQL

Create a free account or sign in before running queries against protected question data.