DataDriven
LearnPracticeInterviewDiscussDailyJobs

Monthly Cohort Retention

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
L4

Interview Prompt

Build a cohort retention analysis. Users are grouped by the month they signed up. For each signup cohort, calculate what fraction of users were active in each subsequent month. A user is active in a month if they have at least one session during that month. Return the cohort month, the months since signup, and the retention rate.

Summary

Compute month over month retention rates for user signup cohorts.

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

Related

  • All Mock Interviews
  • Practice Mode (untimed)
  • SQL Interview Questions
  • Data Engineering Interview Prep Guide
  • Practice Problems
  • Daily Challenge