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 ...
Company labels are directional practice context, not official interview guidance.
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.
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 | user_id | device_type | |
|---|---|---|---|
| 1 | 11 | laptop | 2024-02-01 |
| 2 | 12 | phone | 2024-02-01 |
| 3 | 13 | tablet | 2024-02-02 |
| 4 | 14 | laptop | 2024-02-03 |
| 5 | 15 | tv | 2024-02-03 |
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.