Loading...
Pairwise Latency Maximum
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- junior, mid
Problem
Take every combination of latency values from api_calls (with replacement) and, for each pair, show both values and whichever is larger. Limit to the first 100 rows when both values are in ascending sequence. Return the two latency values and the maximum of the pair.
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.