Loading...

API Calls With Matching Status

A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.

Domain
SQL
Difficulty
medium
Seniority
mid

Problem

During an incident postmortem, the on-call engineer suspects duplicate request patterns in the API layer. Find pairs of different API calls that share the same HTTP method and status code. For each pair, show both call IDs, the method, and the status, with the highest status codes appearing first. Return only the first 20 results.

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.