Loyalty's Double Tap
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L3
Problem
Growth wants to know whether push notifications and display ads reinforce each other. Count the clicked ad impressions belonging to users who were also part of a loyalty push-notification campaign (any campaign whose name contains 'loyalty', case-insensitive). Join ad_impressions to push_notifs on user_id, keep only clicked impressions, and return the total count as impression_count.
Summary
When a nudge and a banner team up.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.