Loading...

Error Severity Buckets

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

Domain
SQL
Difficulty
easy
Seniority
junior, mid

Problem

The error tracking table records occurrence counts per error type. Based on the count, assign labels: 0 as 'NONE', 1 to 5 as 'LOW', 6 to 20 as 'MODERATE', 21 to 50 as 'HIGH', more than 50 as 'CRITICAL'. Show each error type and its severity label. Exclude entries with no 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.