Loading interview...
Rank Users by Search Query Count
A medium SQL mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- mid
Interview Prompt
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.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your sql solution with real code execution
- Get instant feedback and a hire/no-hire decision