← All SQL interview questions

Flag subscription churn risk

MediumCASE StatementsZoomInfoPayPal

A retention squad triages accounts by how long they have been inactive and whether auto-renew is switched on.

From subscriptions, return account_code, days_inactive, auto_renew and a risk_band computed as:

  • Critical when days_inactive is 60 or more and auto_renew is false
  • High when days_inactive is 60 or more (auto-renew on)
  • Watch when days_inactive is between 30 and 59
  • Healthy otherwise

Sample data

Practising alone only goes so far — our live cohorts pair SQL depth with dashboards, agentic analytics projects and mock interviews.

Explore the program