About the “Missing Inbound Supplier Shipments with LEFT JOIN” SQL Problem
Business Scenario
Warehouse inventory control issues purchase orders (POs) to product vendors. The inventory manager needs to identify open purchase orders that have zero receiving records logged at the fulfillment dock.
Expected Output & Criteria
List of unreceived purchase orders sorted chronologically by expected delivery date.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMThis challenge executes directly against the following relational schema in your browser:
CREATE TABLE supplier_pos (
po_number VARCHAR(20) PRIMARY KEY,
vendor_name VARCHAR(100) NOT NULL,
total_order_cost NUMERIC(10, 2) NOT NULL,
expected_delivery_date DATE NOT NULL
);
CREATE TABLE warehouse_receipts (
receipt_id INT PRIMARY KEY,
po_number VARCHAR(20) REFERENCES supplier_pos(po_number),
received_at TIMESTAMP NOT NULL,
pallet_count INT NOT NULL
);Target SQL Clauses & Operators
LEFT JOINIS NULLORDER BY
Want more Joins practice?
Explore the full syllabus of 12 exercises, syntax guides, and interview pitfalls.