Using the same STREAMS/TITLES tables, find the name and title id of the first movie streamed by each user each day.
Asked in the phone screen stage.
user_id, stream_date, name, and title_id.user_id, then stream_date, both ascending. Break timestamp ties with the lowest stream_id.| Column | Type | Description |
|---|---|---|
| stream_idPK | INT | Unique stream event identifier |
| user_id | INT | Identifier of the user who streamed the movie |
| stream_timestamp | TIMESTAMPTZ | Timestamp when the movie stream began |
| title_id | INT | Movie identifier referenced in titles |
| Column | Type | Description |
|---|---|---|
| title_idPK | INT | Unique movie identifier |
| name | VARCHAR(150) | Movie title name |