Write a SQL query to find the top 10 most engaged users in the last month.
For this exercise, engagement is defined as the number of user event records during the previous calendar month. Include users with no qualifying events, treating their engagement count as zero.
user_id, user_name, and engagement_count.user_id ascending to break ties.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| user_name | VARCHAR(100) | Display name of the user |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique event identifier |
| user_id | INT | User associated with the event |
| event_type | VARCHAR(30) | Type of user engagement event |
| occurred_at | TIMESTAMP | Timestamp when the event occurred |