Search ⌘K
Netflix
Netflix

Foundations Track · Easy · 15 min

Device View Mix

Netflix is reviewing device view mix through a scorecard. Count how many views came from laptop devices and how many came from mobile devices. Treat phone an...

Foundations Track
Easy
15 min
query basics

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.

Netflix is reviewing device view mix through a scorecard. Count how many views came from laptop devices and how many came from mobile devices. Treat phone and tablet as mobile. Return laptop_views and mobile_views.

watch_events
view_id INT
user_id INT
device_type VARCHAR(20
view_iduser_iddevice_type
110laptop2024-02-01
211phone2024-02-01
312tablet2024-02-02
413laptop2024-02-03
514tv2024-02-04
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.