← All SQL interview questions

Shipments still missing a delivery timestamp

EasyNULL / NOT NULL HandlingOlaEXL

A logistics control tower flags every dispatch that has left the warehouse but has no delivery confirmation yet. Undelivered parcels have a NULL value in delivered_at.

Return dispatch_id, order_ref and courier_partner for all dispatches that are not yet delivered.

Sample data

Table: courier_dispatch

12 row(s) · showing first 8

dispatch_idINTorder_refTEXTcourier_partnerTEXTdispatched_atTIMESTAMPdelivered_atTIMESTAMP
301ORD-4411BlueDart2026-02-012026-02-03
302ORD-4412Delhivery2026-02-01NULL
303ORD-4413Ecom Express2026-02-022026-02-05
304ORD-4414BlueDart2026-02-02NULL
305ORD-4415Shadowfax2026-02-032026-02-04
306ORD-4416Delhivery2026-02-03NULL
307ORD-4417XpressBees2026-02-042026-02-07
308ORD-4418Shadowfax2026-02-05NULL

Practising alone only goes so far — our live cohorts pair SQL depth with dashboards, agentic analytics projects and mock interviews.

Explore the program