Slack wants to identify its most active users based on messages sent during January 2025. Write a PostgreSQL query that returns the five users with the highest message activity in the specified timeframe.
2025-01-01 00:00:00+00 through, but not including, 2025-02-01 00:00:00+00.user_id ascending to break ties.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique Slack user identifier |
| display_name | VARCHAR(120) | User's Slack display name |
| VARCHAR(255) | User email address |
| Column | Type | Description |
|---|---|---|
| message_idPK | INT | Unique message identifier |
| user_id | INT | Slack user who sent the message |
| channel_name | VARCHAR(120) | Slack channel containing the message |
| sent_at | TIMESTAMPTZ | Timestamp when the message was sent |