You're a junior analyst at PlayReel, a streaming service. The catalog is stored in shows, with one row per show, while seasons are stored in seasons. A show can have multiple seasons. A colleague noticed that joining these tables produces multiple rows for some shows, making the catalog view look inflated. You've been asked to measure the effect: for each show that produces more than one row after the join, return how many rows it produces.
Return these columns:
- title — show title;
- join_rows — number of rows the show produces after joining with seasons (an integer strictly greater than 1).
Sort the result by join_rows in descending order, then by title in ascending order. Exclude shows that produce exactly one row or have no seasons.
titlejoin_rowsShowing 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