Loading...
Top Regions by Effective Uptime
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- mid
Problem
The SRE dashboard tracks effective uptime by region. Effective uptime hours equals uptime minus (latency / 10); treat negative results as zero. Round to 2 decimal places. Return the top 3 regions by total effective uptime hours, where tied regions share the same rank. Show region and total effective hours.
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.