Your question is SQL: Active User Query. 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.
Palantir Foundry telemetry includes user accounts and recorded activity events. Write a PostgreSQL query to identify the most active user during January 2025.
2025-01-01 inclusive through 2025-02-01 exclusive.| Column | Type | Description |
|---|---|---|
| user_idPK | INTEGER | Unique user identifier |
| user_name | VARCHAR(100) | User display name |
| team_name | VARCHAR(100) | Foundry team associated with the user |
| Column | Type | Description |
|---|---|---|
| event_idPK | INTEGER | Unique activity event identifier |
| user_id | INTEGER | User associated with the event, when known |
| event_type | VARCHAR(50) | Activity category |
| occurred_at | TIMESTAMP | Timestamp when the event occurred |