Loading...
Second Highest Latency by Method
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- mid
Problem
Find the second-highest latency API endpoint in each HTTP method group. If multiple endpoints share the highest latency, the second-highest is the next unique latency value below that. Show method, endpoint, and latency.
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.