Loading interview...
Top Campaign by User Revenue
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
- senior
Interview Prompt
For each user who clicked an ad, find which campaign generated the most revenue for that user. If multiple campaigns tie for the top, list each qualifying entry only once. Show the user and the top campaign.
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