Loading...

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
mid

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.

Practice This Problem

Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a live PostgreSQL database and grades it instantly.