DataDriven
LearnPracticeInterviewDiscussDailyJobs

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

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write your sql solution with real code execution
  4. Get instant feedback and a hire/no-hire decision

Related

  • All Mock Interviews
  • Practice Mode (untimed)
  • SQL Interview Questions
  • Data Engineering Interview Prep Guide
  • Practice Problems
  • Daily Challenge