Logistics & Transportation Analytics · Mission 4 of 30Starter

Delivered shipment count

COUNT(*) with a WHERE filter on a status column

The Brief

Maya ChenLogistics Analystlogistics-ops

Quick gut-check: how many shipments have a status of 'delivered'? Just give me the count — single number, label it `delivered_count`.

You'll practice

COUNTWHERE

Tables & columns available

fact_shipmentsfact15 columns
ColumnTypeKey
shipment_idINTPK
carrier_idINTFK → dim_carriers
lane_idINTFK → dim_lanes
planned_pickup_dateTEXT
actual_pickup_dateTEXT
planned_delivery_dateTEXT
actual_delivery_dateTEXT
qty_orderedINT
qty_shippedINT
weight_lbsREAL
freight_costREAL
fuel_surchargeREAL
accessorial_costREAL
dwell_hours_at_originREAL
statusTEXT

Hints (3)

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

Hint 1

You're counting rows that match a condition, not summing a column.

Hint 2

Only one status value means the package actually arrived — filter the table to it.

Hint 3

Maya asked for one number — give the column a name that says what it represents.