Loading interview...
Upvote Percentage by Age Cohort
A hard SQL mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- SQL
- Difficulty
- hard
Interview Prompt
Classify each user as 'new' if julianday(MAX signup_date in users) - julianday(their signup_date) <= 30, otherwise 'existing'. A successful search is a search_queries row where clicked_result = 1. Per segment, return segment, total_searches, successful_searches, and success_rate = successful / total (decimal). Sort alphabetically by segment.
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