Monthly Repeat-Payment Retention for New Venmo Senders
Last updated: November 29, 2026
Quick Overview
Using payments(sender_id, created_at, status), group users into monthly cohorts by their first completed payment and report the share of each cohort that completes another payment in months 1, 2 and 3 after joining.
PayPal
November 29, 20260
0
0 solved
Using payments(sender_id, created_at, status), group users into monthly cohorts by their first completed payment and report the share of each cohort that completes another payment in months 1, 2 and 3 after joining.
Venmo growth reviews at PayPal center on whether new senders keep paying friends after the first transfer. The interviewer checks cohort assignment from completed payments only, month-offset arithmetic, and correct denominators.
What the Interviewer Expects
- Define the cohort from the first COMPLETED payment, ignoring failures
- Compute month offsets with year and month arithmetic, not day differences
- Count each user at most once per month offset
- Use the cohort size as the denominator for every column
- Recognize that recent cohorts have incomplete windows
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
- How would you mask cells for cohorts that have not had three full months yet?
- How would you switch to rolling retention (active in month n or any later month)?
- How would retention differ if you counted receiving money as activity?
- How would you show whether a new feature improved retention for later cohorts?
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
Only status = 'COMPLETED' counts; a failed first attempt should not set the cohort. Activity means sending a completed payment. Month n retention is the share of the cohort with at least one complet...
Approach
Truncate every completed payment to its month, take each user's minimum month as the cohort, compute the month offset for every active month, deduplicate to one row per user and offset, then pivot wit...