I have two tables:
Warehouse
Shipment
- OrderID
- Warehouseid
- Shipdate
I am looking for a list orderIDfor orders that were shipped from all of the warehouses the company has in New York.
The request I tried
select orderID
from shipment
join shipment on warehouse.warehouseID = shipment.warehouseID
where warehouse.Wcity = "new york";
source
share