Where the Minutes Go
A hard SQL interview practice problem on DataDriven. Write and execute real sql code with instant feedback.
- Domain
- SQL
- Difficulty
- hard
- Seniority
- L5
Problem
Our analytics warehouse stores one row per page view, tagged with the visitor's device and how long they stayed on the page. Build a leaderboard of device types by total time on page, biggest first, and next to each device show the cumulative share of overall time the leaderboard has accounted for through that row.
Summary
Attention piles up device by device. Find where it pools.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and checks it automatically.