Your question is SQL for DAU and Retention. Start with the requirements and the two tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Scopely's Monopoly GO! analytics team needs a daily engagement report. Write a PostgreSQL query that calculates DAU and install-cohort retention using UTC event dates.
session event.| Column | Type | Description |
|---|---|---|
| player_idPK | INT | Unique player identifier |
| install_date | DATE | UTC installation date |
| platform | VARCHAR(20) | Player device platform |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique event identifier |
| player_id | INT | Player who generated the event |
| event_ts | TIMESTAMP | UTC event timestamp |
| event_type | VARCHAR(30) | Event classification |