Loading...
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
- mid, senior
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.
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.