Loading...
Rank Users by Search Query Count
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- mid
Problem
Rank users by total search queries, most active at rank 1. Users with the same count should fall in alphabetical sequence by user ID (treated as text), and every user gets a unique rank with no ties.
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.