A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L4
Problem
Compute churn for API tokens in September 2026. Churn rate is the difference between tokens active on September 1 and tokens active on September 30, divided by the count on September 1. A token is active if it was issued on or before the target date and either has no expiration or expires on or after that date. Return a single churn rate.
Summary
Tokens come and go. How fast is the revolving door?
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.