From server_logs, create a formatted log identifier by zero-padding the log_id to 6 digits with the
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
From server_logs, create a formatted log identifier by zero-padding the log_id to 6 digits with the prefix 'LOG-' using FORMAT. Return log_id, server_name, and the formatted identifier. Order by log_id and limit to 5 rows.
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