Warehouse Operations Analytics · Mission 13 of 30Medium

Dock-to-stock 3-phase

Multiple AVG date diffs

The Brief

Rita AlvarezDC Operations Managerwarehouse-ops

Decompose dock-to-stock: arrival-to-unload, unload-to-count, count-to-putaway. Three averages in minutes.

You'll practice

Date arithmetic

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

Three sequential gaps to compute: arrival→unload, unload→count, count→putaway. Same trick as M5, repeated.

Hint 2

For each phase, EXTRACT(EPOCH FROM later_ts - earlier_ts) / 60 gives minutes; wrap in AVG().

Hint 3

Final shape is one row, three columns — the per-phase averages side by side.