Some payload JSON documents contain a nested 'details' object
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
Some payload JSON documents contain a nested 'details' object. Extract the value at the path $.details.source from the payload column, aliased as traffic_source. Also return event_id. Only include rows where event_type is 'page_view'.
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