Warehouse Operations Analytics · Mission 9 of 30Easy

Inbound by day of week

GROUP BY with strftime

The Brief

Rita AlvarezDC Operations Managerwarehouse-ops

Inbound receipt count by day of week. Show day_of_week (0=Sunday) and receipt_count.

You'll practice

GROUP BY

Tables & columns available

fact_inbound_receiptsfact10 columns
ColumnTypeKey
receipt_idINTPK
supplier_idINT
dock_doorINT
dock_arrival_tsTEXT
unload_complete_tsTEXT
count_complete_tsTEXT
putaway_complete_tsTEXT
expected_unitsINT
actual_unitsINT
worker_idINTFK → dim_workers

Hints (3)

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

Hint 1

Day-of-week is buried in a timestamp — there is a Postgres function that extracts it as 0–6.

Hint 2

EXTRACT(DOW FROM ts) returns 0=Sunday through 6=Saturday — group on that expression.

Hint 3

Project two columns, day_of_week and receipt_count, and order chronologically.