Reactivation, Jul 1, 2025: pause 14 d, window 30 d
Instructions
A client's transaction is any transactions record on any of the client's accounts (accounts.client_id). The reporting date is July 1, 2025. A churned client is a client who has transactions strictly before July 1, 2025 but none from June 17, 2025 to June 30, 2025 inclusive (the 14 days before the reporting date). A churned client came back if they have a transaction from July 1, 2025 to July 30, 2025 inclusive (30 days, starting from the reporting date). For each segment (clients.segment), output segment, churned (the number of churned clients), reactivated (how many of them came back) and reactivated_pct (reactivated / churned × 100, rounded to 1 decimal place). Do not output segments with no churned clients. Sort by segment.
Hints
Each next one is more detailed and costs more
Query
Result
Click Run to see the query result, or Check to submit your solution.
Dataset schema
Table relationships
- N:1Many-to-one
accounts.→client_id clients.id - N:1Many-to-one
transactions.→account_id accounts.id
Table data
Select a table in the diagram or list to view its rows.