Your question is Top Users by Engagement. 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.
Dayforce wants to identify the most engaged users of its platform. Using activity recorded during Q2 2025, write a PostgreSQL query that ranks every user and returns the top 10% based on a defined engagement score.
engagement_events.engagement_score as (sessions * 2) + completed_tasks.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique Dayforce user identifier |
| full_name | VARCHAR(100) | User's display name |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique engagement event identifier |
| user_id | INT | User associated with the event |
| event_type | VARCHAR(30) | Type of engagement activity |
| engagement_value | INT | Number of represented sessions or completed tasks |
| occurred_on | DATE | Date on which the activity occurred |