Monthly Churn Rate for Meta Verified Subscriptions
Last updated: November 29, 2026
Quick Overview
Given a Meta Verified subscriptions table with start and end dates, compute for each calendar month the number of subscribers active on the first day, the number who ended during the month, and the monthly churn rate.
Meta
November 29, 20260
0
0 solved
Given a Meta Verified subscriptions table with start and end dates, compute for each calendar month the number of subscribers active on the first day, the number who ended during the month, and the monthly churn rate.
Meta Verified is a subscription for creators and businesses, and its finance and product teams track monthly churn. This screen question checks interval overlap logic and a well-defined denominator (active at start of month), a common place where candidates mix up stocks and flows.
What the Interviewer Expects
- Use subscribers active at month start as the denominator
- Count ends that fall inside the month as churn
- Exclude subscriptions starting mid-month from that month's denominator
- Generate months from a calendar table
- Handle NULL end dates as still active
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 subscriber who starts and cancels within the same month count, and where?
- How would you separate voluntary cancellations from payment failures?
- How would you compute this per platform (Facebook versus Instagram)?
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
verified_subs(sub_id, user_id, start_date, end_date) where end_date is NULL when active. A calendar table months(month_start) lists month starts. Churn in month M means end_date falls in M for...
Approach
Cross join months to subscriptions, keep rows where the subscription is active on month_start (started on or before it and not ended before it). Among those, flag ends before the next month start. A...