Write a query to find the top five most-watched TV shows or streams on Nyc Staffing’s platform for a specific month, accounting for duplicate user sessions.
Use February 2025 as the target month. Treat records with the same user, show, and session start time as duplicate sessions, retaining only the earliest session record.
show_id, show_title, unique_viewers, and total_watch_minutes| Column | Type | Description |
|---|---|---|
| show_idPK | INT | Unique identifier for the show |
| show_title | VARCHAR(150) | Display title of the show or stream |
| Column | Type | Description |
|---|---|---|
| session_idPK | INT | Unique identifier for the recorded session |
| user_id | INT | Identifier of the viewing user |
| show_id | INT | Show watched during the session |
| session_started_at | TIMESTAMP | Timestamp when the session began |
| watch_minutes | INT | Minutes watched during the session |