Netflix's content strategy team wants to know which title dominates each genre in total viewing time. For every genre, find the title (or titles, if there is a tie) with the greatest total `minutes_watched` summed across all watch events. Only titles with at least one watch event are considered. Return `genre`, `title_name` and `total_minutes`. Order the results by `genre` ascending, then `title_name` ascending.
Loading…
Try solving the question with the schema explorer and hints first. When ready, reveal the verified canonical query and step-by-step logic breakdown.
Ask questions, share alternate queries, and explore solutions
Your recent query executions and answer checks
This will insert the verified MySQL solution into your editor so you can study how each clause transforms the table.