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
- L3
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.
Summary
Every pair compared.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.