Capital One·Data Scientist·Technical Phone Screen
- You're given four CSVs (platforms, ads, videos, and a daily totals table) where the date column uses dashes to mean 'same as the row above.' Using only SQL (no procedural code), forward-fill those dates, then for a 7-day window compute per-ad and per-platform aggregates including CTR, and return both the top 3 ads by plays and the peak watch-time date per ad, all in a single query.
“This thing had like five sub-problems stapled together and they wanted one query.”