Loading...

Service Uptime Turnaround

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

Domain
SQL
Difficulty
hard
Seniority
senior, staff

Problem

Find services that experienced at least one month of declining uptime followed by at least one month of growth. For each qualifying service, return the service name, the month the decline started, the month growth resumed, and the growth ratio from lowest uptime to peak: (peak minus lowest) divided by lowest.

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.