Loading interview...

The Severity Matrix

A medium SQL mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.

Domain
SQL
Difficulty
medium

Interview Prompt

Per svc_name in alert_events, pivot counts by severity: critical_count (severity='critical'), warning_count, info_count, null_count (severity IS NULL), and total_count = COUNT(*). Return 6 columns sorted by total_count descending, tie-break alphabetically by svc_name.

How This Interview Works

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write your sql solution with real code execution
  4. Get instant feedback and a hire/no-hire decision