For each ad impression, show the first campaign that user ever interacted with
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
For each ad impression, show the first campaign that user ever interacted with. Return user_id, ad_campaign, impression_time, and the result as first_campaign.
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