Question from the search team
“Across all searches, did the share that led to an add-to-cart go up this week?”

Inspect the four source rows and metric definition

Each search counts once. The numerator counts searches with at least one add. Rows group searches by week and device.

Simulated search log
WeekDeviceSearchesWith an add
PriorMobile80080
PriorDesktop20060
CurrentMobile60054
CurrentDesktop600174
Choose the agent’s query plan
SELECT week,
  AVG(1.0 * searches_with_add / searches) AS result
FROM search_log
GROUP BY week

Take the full course

Explore the six-module course and capstone →

Leave your email for course enrollment updates from Allan.