A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L3
Problem
We categorize error messages by length: 'short' (under 25 chars), 'mid' (25 to 35), and 'long' (over 35). Find errors that are not 'short' and have fatal severity (matching 'Fatal' or 'fatal' exactly). Show error ID, message, service name, and the length category, with one row per error.
Summary
Short errors are noise. Long ones matter.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.