You work with data from a streaming service. Playback events are recorded in two tables: one for the web player and another for the mobile app. The product team is building a "You've already watched this" recommendation section and needs a record of which titles each profile has ever played. How often a title was replayed and which device was used do not matter.
Return these columns:
- profile_id — viewer profile ID (integer);
- title_code — title code.
Sort by profile_id in ascending order, then by title_code in ascending order. Each profile-title pair must appear exactly once, regardless of how many times or on how many platforms the title was played.
profile_idtitle_codeShowing the first 3 rows of the sample — the full sample comes with Premium
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in