Alteryx wants to identify the most engaged users across account regions. Using activity recorded in its user event pipeline, write a PostgreSQL query that finds the top three active users in each region over the 30-day period ending on 2025-02-15.
| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| user_name | VARCHAR(100) | User display name |
| account_id | INT | Account associated with the user |
| Column | Type | Description |
|---|---|---|
| account_idPK | INT | Unique account identifier |
| region | VARCHAR(50) | Geographic region assigned to the account |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique event identifier |
| user_id | INT | User who generated the event |
| event_type | VARCHAR(50) | Type of user activity |
| event_timestamp | TIMESTAMP | Timestamp when the event occurred |