Twitch Operations needs to measure whether creators who actively stream in Just Chatting or Music return to stream in the same category during the following week. Write a PostgreSQL query using the tables below.
creators.status = 'active' and the stream has duration_minutes > 0.| Column | Type | Description |
|---|---|---|
| creator_idPK | INT | Unique Twitch creator identifier |
| display_name | VARCHAR(100) | Creator channel display name |
| status | VARCHAR(20) | Creator account status |
| Column | Type | Description |
|---|---|---|
| category_idPK | INT | Unique Twitch category identifier |
| category_name | VARCHAR(100) | Twitch category name |
| Column | Type | Description |
|---|---|---|
| stream_idPK | INT | Unique stream session identifier |
| creator_id | INT | Creator who started the stream |
| category_id | INT | Category selected for the stream |
| started_at | TIMESTAMP | Stream start timestamp |
| duration_minutes | INT | Stream duration in minutes |