Monthly Patron Churn Rate By Creator Category
Last updated: November 29, 2026
Quick Overview
Using memberships(membership_id, patron_id, creator_id, started_at, ended_at) and creators(creator_id, category), compute October 2026 churn by creator category: memberships active at the start of the month that ended during the month, divided by memberships active at the start.
Patreon
November 29, 20260
0
0 solved
Using memberships(membership_id, patron_id, creator_id, started_at, ended_at) and creators(creator_id, category), compute October 2026 churn by creator category: memberships active at the start of the month that ended during the month, divided by memberships active at the start.
Patron churn is one of Patreon's core health metrics, and creators in different categories (podcasts, games, art) retain very differently. This SQL screen checks a correct denominator, NULL handling for open memberships, and clean conditional aggregation.
What the Interviewer Expects
- Defines the cohort as memberships active at the start of the month
- Treats NULL ended_at as still active
- Uses half-open date ranges to avoid boundary double counting
- Computes the rate with conditional aggregation and decimal division
- Groups by category and states what the grain is (membership, not patron)
Key Topics to Cover
How to Approach This
- Clarify the schema and expected output format before writing queries.
- Use CTEs (WITH clauses) to break complex queries into readable steps.
- Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
- Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
- For pandas, prefer vectorized operations over row-by-row iteration.
Possible Follow-up Questions
- Should a membership that started mid-October and ended in October count? In which metric?
- How would you separate voluntary cancels from involuntary churn due to declines?
- How would you compute this for every month in one query?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice SQL ProblemsSample Answer
Clarify the Data
One row per membership (a patron joining a creator). ended_at is NULL while active. A patron supporting three creators has three rows, so this is membership churn, not patron churn. Confirm the time...
Approach
Cohort: started_at < '2026-10-01' and (ended_at is NULL or ended_at >= '2026-10-01'). Churned: cohort members with ended_at < '2026-11-01'. Using half-open ranges [start, end) means a member...