Most Recent Token Usage
A easy SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- easy
- Seniority
- L4
Problem
The security team is auditing API token activity. For each token owner, pull only the single most recently used record. Include all token fields (ID, owner, scope, status, issued date, expiration, last used date, request count) and a row indicator.
Summary
Each user's latest token activity.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.