Loading...

Latency Quartiles Per Endpoint

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

Domain
SQL
Difficulty
hard
Seniority
mid, senior

Problem

For the API performance review, divide each endpoint's calls into four equal-sized buckets by latency, then for each endpoint-bucket pair show the minimum latency, maximum latency, and average latency. Results should appear ordered by endpoint name, then by bucket number.

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.