Churn of Moscow clients, Jul 1, 2025: 60 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; only transactions strictly before it are counted. An active client is a client from the city 'Москва' (clients.city) with at least one transaction strictly before July 1, 2025. An active client is considered churned if they have no transactions from May 2, 2025 to June 30, 2025 inclusive (the 60 days before the reporting date). For each segment (clients.segment), output segment, active_clients (the number of active clients), churned (the number of churned clients) and churn_pct (churned / active_clients × 100, rounded to 1 decimal place). Clients without transactions before the reporting date are not counted. 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.