TASK #174 · Medium · N26Churn-Risk Customers
Your brief
Assume today is March 31, 2024. Treat "the last 30 days"
as the range from March 1, 2024 to March 31, 2024 inclusive.
The churn-risk team is investigating customers who registered more than 30 days ago (signup_date <= 2024-03-01) but have not made any transaction in the last 30 days.
Write a query that returns customer_name, signup_date and last_transaction_at — the timestamp of their most recent transaction (or
The churn-risk team is investigating customers who registered more than 30 days ago (signup_date <= 2024-03-01) but have not made any transaction in the last 30 days.
Write a query that returns customer_name, signup_date and last_transaction_at — the timestamp of their most recent transaction (or
NULL
if they have none). Sort by signup_date ascending: an
old account that has gone silent is the strongest warning signal.
Ctrl / ⌘ + ↵
Result
Write a query and run it to see the results.
Schema
customerscustomer_id, name, country, signup_datetransactionstransaction_id, customer_id, transaction_type, amount, merchant_category, transaction_at