Ninety-Day Activation Rate for Each Monthly Card Account Cohort

Last updated: November 29, 2026

Quick Overview

For each month in which new credit card accounts were opened, compute how many accounts opened and what share made at least one purchase within 90 days of opening, reporting only cohorts that have fully matured.

Capital One
Data Manipulation (SQL/Python)
Data Scientist
Capital One
November 29, 2026
Data Scientist
Online Assessment
Data Manipulation (SQL/Python)
Easy

0

0

0 solved


For each month in which new credit card accounts were opened, compute how many accounts opened and what share made at least one purchase within 90 days of opening, reporting only cohorts that have fully matured.

New card activation is a core acquisition metric for Capital One, since an approved card that is never used costs money and earns nothing. The interviewer checks a basic cohort grouping, a left join that keeps inactive accounts, and awareness that recent cohorts are not yet complete.

What the Interviewer Expects
  • Groups accounts by the month they were opened
  • Uses a left join or EXISTS so accounts with no purchases stay in the denominator
  • Bounds the purchase window to 90 days after the open date
  • Excludes cohorts that have not had 90 days to mature
  • Counts purchases only, not payments or fees
Key Topics to Cover
cohorts
activation
left join
cohort maturity
How to Approach This
  1. Clarify the schema and expected output format before writing queries.
  2. Use CTEs (WITH clauses) to break complex queries into readable steps.
  3. Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
  4. Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
  5. For pandas, prefer vectorized operations over row-by-row iteration.
Possible Follow-up Questions
  • How would you show this as a curve by day since opening instead of one number?
  • How would you split the rate by acquisition channel?
  • What would you do about accounts that closed within the 90 days?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice SQL Problems
Sample Answer
Clarify the Data
  • accounts(account_id, open_date, channel) and transactions(account_id, txn_date, amount, txn_type).
  • A purchase is txn_type = 'purchase' and amount > 0. Fees and interest are not customer acti...
Approach

Compute an activation flag per account using EXISTS on a purchase in [open_date, open_date + 90 days). Then group by cohort month, count accounts, and average the flag. Filter cohorts to mature ones...


Submit Your Answer
Markdown supported