Messages Sent per User
A messaging platform is summarizing senders. For each sender_id, count the messages sent (msg_count). Sort by message count descending.
Expected output sample
This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.
| msg_count | sender_id |
|---|---|
| 3 | 1 |
| 2 | 4 |
| 2 | 2 |
VK
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign inFocus radio
Paused · SomaFM · Fluid