Top Services by Uptime
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L4
Problem
The SRE team maintains an uptime leaderboard. Rank services by average uptime, but only include services with at least 5 health checks. Tied services share the same rank with no gaps. Return the top 3 ranks, including ties. Round to 2 decimal places.
Summary
Uptime is a competition. Which services never blink?
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.