SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Users Who Heard an Entire Playlist

Unsolved

Spotify wants to reward listeners who fully explored a curated playlist. For the playlist named `Road Trip Mix`, find every user who has listened to every track in that playlist at least once. Listening to tracks outside the playlist does not matter and must not be counted. Return the columns `user_id` and `total_listens`, where `total_listens` is the total number of listen events (including repeats) by that user on tracks of the `Road Trip Mix` playlist. Order the results by `user_id` ascending.

SQL Query Editor (Ctrl+Enter to run)
0 characters · Valid
Canonical Solution Official

Official Solution is Hidden

Try solving the question with the schema explorer and hints first. When ready, reveal the verified canonical query and step-by-step logic breakdown.

Community Q&A & Discussion

Ask questions, share alternate queries, and explore solutions

0 comments
Asked By:
🏢 Spotify🏢 Netflix🏢 Apple

Submission History

Your recent query executions and answer checks

Execution Pipeline:
FROM playlists
Full source dataset
2 rows total
Ready. Type a query to see live execution.
Clause: Auto-Sync · AlaSQL Engine