Chapter 5 · JOINs
24. Orders with Shipping Status
Medium20 XPE-Commerce
Logistics needs a dashboard showing each order's shipping progress. Return order id, order_date, customer_id, shipping carrier, shipping status, and delivery_date. Include all orders even if shipping hasn't been created yet. Sort by order_date descending.
Tables
- PKidINT
- FKcustomer_id→ customers.idINT
- order_dateTEXT
- statusTEXT
- total_amountREAL
- PKidINT
- FKorder_id→ orders.idINT
- shipping_dateTEXT
- delivery_dateTEXT
- carrierTEXT
- tracking_numberTEXT
- statusTEXT
Need help?
Ask Sol
AI tutor — looks at your current query and nudges you, without spoiling the answer.
Solution
Try the hints first — solving it yourself is what makes it stick.