Your question is Top Engaged Users by Region. 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.
Asana Spa wants to identify its most engaged users across regional teams. Write a PostgreSQL query that finds the top three users in each region based on activity during the last 30 days.
Assume CURRENT_DATE is 2026-08-29 when validating the sample data.
| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| user_name | VARCHAR(100) | User's display name |
| region | VARCHAR(50) | User's regional team |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique activity event identifier |
| user_id | INT | User associated with the event |
| event_timestamp | TIMESTAMP | Time when the activity occurred |
| event_type | VARCHAR(50) | Type of Asana activity |