Loading interview...
Rows With Multiple Flag Conditions
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
- Seniority
- mid
Interview Prompt
The SRE team is triaging compound error conditions where multiple signals fire at once. An error record is flagged if it matches more than one of these: err_type contains 'Error', message contains 'null', svc_name contains 'api', severity is 'error' or 'ERROR'. Return all flagged rows with their error ID, type, message, service, severity, occurrence count, and first occurrence time.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your sql solution with real code execution
- Get instant feedback and a hire/no-hire decision