Laptop vs. Mobile Viewership
Calculate the total viewership for laptops and mobile devices. Mobile is defined as the sum of tablet and phone viewership. Output laptop_views and mobile_views.
1 SQL practice question in our The New York Times 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
Independent practice resource. Not affiliated with or endorsed by The New York Times.
These topics come from the questions in this set. Pick one to open the matching problems.
Calculate the total viewership for laptops and mobile devices. Mobile is defined as the sum of tablet and phone viewership. Output laptop_views and mobile_views.
1 The New York Times problem, each with its own dataset. Click one and you’re in the workspace, free, right in your browser.
Your dataset
user_id (INTEGER) · device_type (VARCHAR) · view_time (FLOAT)
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 The New York Times SQL free188 SQL practice questions. 23 companies. Free access to every problem.