A hard SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- hard
- Seniority
- L5
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.
Summary
It was down. Then it came back. Stronger.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.