Successful Call Volume per Endpoint
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
- L5
Interview Prompt
The API gateway logs duplicate events from retry middleware. In the api_calls table, duplicate rows share the same user_id, endpoint, and call_time. Keep only the row with the lowest call_id from each duplicate group. After deduplication, find the total number of successful calls per endpoint. A successful call has status equal to 200. Return each endpoint and its successful call count, ordered from most to fewest.
Summary
Not every ping is honest.
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