Quick Overview

Practice a data science SQL interview problem that calculates each advertiser's seven-day Shop ad spend share after applying a total-spend threshold. The walkthrough covers conditional aggregation, HAVING filters, safe division, duplicate checks, and validation at the advertiser-ad-day grain.

Compute Each Advertiser's Share of Shop Ad Spend

Company: Meta

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Onsite

Quick Answer: Practice a data science SQL interview problem that calculates each advertiser's seven-day Shop ad spend share after applying a total-spend threshold. The walkthrough covers conditional aggregation, HAVING filters, safe division, duplicate checks, and validation at the advertiser-ad-day grain.

Loading…