Top Active Senders per Channel
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L4
Problem
Show the top 3 most active senders by message count in each chat channel. Ties share the same rank with no gaps, which may produce more than 3 rows per channel. Return channel, sender ID, and message count.
Summary
Top three messages per channel by replies.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.