Write a SQL query to find the top 10 users with the highest activity in the last month.
Treat activity as the number of activity events during the previous calendar month. Return users with at least one qualifying event.
user_id, username, and activity_count.activity_count descending and user_id ascending for ties.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| username | VARCHAR(100) | User display name |
| Column | Type | Description |
|---|---|---|
| activity_idPK | INT | Unique activity event identifier |
| user_id | INT | User associated with the activity event |
| activity_date | DATE | Calendar date of the activity |
| event_type | VARCHAR(50) | Type of activity performed |