Loading...

Oldest Alert per Service

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

Domain
SQL
Difficulty
hard
Seniority
mid

Problem

During an incident review, the on-call team needs the oldest unresolved alert for each service. Show the service name, alert ID, severity, status, and the time the alert was fired, by service name.

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.