Skip to content
RED SAG Skills
hardStudy question · answer published in SQL interview questions, so no pointschurn-preventionsqlcohort-analysis

Retention above 100%?

A cohort retention query shows month-2 retention of 140% for a user cohort. Which bug is the most likely cause?

SELECT c.cohort_month, e.activity_month,
  COUNT(*) * 1.0 / MAX(c.cohort_size) AS retention
FROM events e
JOIN cohorts c ON c.user_id = e.user_id
GROUP BY c.cohort_month, e.activity_month;
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions