Loading...
Revoked Tokens by Scope
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- mid
Problem
The trust and safety pipeline tracks revoked API tokens by scope. For December 2026, count revoked tokens per scope. Include tokens revoked before December whose expiration extends into at least part of the month. Tokens with no expiration are considered permanently revoked. Match status case-insensitively. Return the scope and blocked count.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a live PostgreSQL database and grades it instantly.