Omnichannel Retail Analytics Path · Mission 3 of 25Easy

BOPIS pickup volume — Q4 2025

First date-bucket query. WHERE on a date-string range, DATE_TRUNC to monthly buckets, COUNT(*). Anchors the BOPIS program operational dashboard.

Back to Omnichannel Retail Analytics

The Brief

Priya ShahBOPIS Program Managerbopis-ops

Board prep this Friday. Give me Q4 2025 BOPIS pickup volume bucketed monthly. fact_pickups has every pickup event we logged. Filter to Oct/Nov/Dec 2025. Two columns: pickup_month (the first of each month as a date) and pickup_count. ORDER BY pickup_month ASC.

You'll practice

WHERE filterCOUNTdate_trunc

Tables & columns available

fact_pickupsfact5 columns
ColumnTypeKey
pickup_idINTPK
order_idINTFK → fact_orders
pickup_tsTEXT
pickup_window_minutesINT
no_show_flagINT

Hints (4)

Each hint you reveal reduces the XP you can earn. Try the query first.

Hint 1

fact_pickups is the source — every web_bopis order that had a pickup logged.

Hint 2

Filter pickup_ts >= '2025-10-01' AND pickup_ts < '2026-01-01' for Q4 2025.

Hint 3

DATE_TRUNC('month', pickup_ts::timestamp)::date buckets to month-start.

Hint 4

GROUP BY pickup_month, ORDER BY pickup_month ASC.