Loading...

Service Scorecard

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

Domain
SQL
Difficulty
hard

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.

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.