Interview › Cohort retention

SQL interview: signup cohort retention

A cohort is “who first appeared in the same bucket.” Retention is whether they came back.

Prompt. For each signup month, how many customers ordered again in later months?

Hint: MIN(order_date) per customer is the cohort

COUNT(*) here is customers, because activity is already DISTINCT. Do not double-count orders.

Then write it on a ticket

Monday is free. A colleague asks, you type, we mark it.

Clock in free