Warehouse Operations Analytics · Mission 5 of 30Starter

Dock-to-stock average

AVG of timestamp diff

The Brief

Rita AlvarezDC Operations Managerwarehouse-ops

Average dock-to-stock time in minutes — dock_arrival_ts to putaway_complete_ts. Single number.

You'll practice

AVG

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

Dock-to-stock is the gap between dock_arrival_ts and putaway_complete_ts on each receipt.

Hint 2

Subtracting two timestamps in Postgres returns an interval — pull the seconds with EXTRACT(EPOCH FROM …) and divide by 60 for minutes.

Hint 3

Wrap the per-row minutes expression in AVG() so a single row comes back across all receipts.