Loading...

Intra-Region Latency Diff

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

Domain
SQL
Difficulty
hard
Seniority
senior

Problem

The infra team tracks node-level latency within regions. For each service node (svc_name), compute the average absolute latency difference between it and every other node in the same region, but only when both nodes have a status of 'healthy' and their uptime values are within 5 percentage points of each other.

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.