Loading interview...
7-Day Token Retention
A medium SQL mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- senior
Interview Prompt
The developer platform team is worried about token churn and wants a quick retention curve. For each issuance date, they need two numbers side by side: how many tokens were active and generating traffic that day, and how many of those same owners still had an active, traffic-generating token 7 days later. Tokens with no expiration date should be treated as still valid. Limit the output to the first 7 dates chronologically.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your sql solution with real code execution
- Get instant feedback and a hire/no-hire decision