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

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write your sql solution with real code execution
  4. Get instant feedback and a hire/no-hire decision