Service Scorecard
A hard SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- hard
- Seniority
- L4
Problem
The VP of Engineering wants a single dashboard row per service tying deploys to alerts. For each service in deploy_logs, count its deploys and then count how many rows in alert_events match on svc_name, keeping services with zero alerts. Return the svc_name, deploy count, and alert count.
Summary
Deploys vs. alerts. One row per service tells the whole story.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.