好吧,如果我有兩個表下面的select語句:添加左連接到兩個表的結果,選擇
SELECT shipments.ShipmentID, shipments.Name, shipments.Reference_No As [Reference Number], shipments.Qty, shipments.Status,
Shipment_Details.ISBN, Shipment_Details.Title, Shipment_Details.Author, Shipment_Details.Publisher,
FROM shipments, Shipment_Details
WHERE shipments.Shipment_No = Shipment_Details.Shipment_No AND shipments.Order_No = Shipment_Details.Order_No
AND (([email protected]_No))
我怎樣才能做一個左側有一個表連接稱爲ShippingSystemExport
,當貨物。ShippingID在ShippingSystemExport
和發貨中找到。狀態(從原始查詢)不是「已發貨」,然後具有shipents.ShipmentID返回爲「在運輸部門掃描」
是否有任何理由在這裏使用C#標籤? – ChunLin
如果您的條件是'ShippingID'存在'ShippingSystemExport'中,您爲什麼還要加入ShippingSystemExport?爲什麼不在這種情況下只使用'INNER JOIN'(假設'ShipmentID'是你加入的領域)? –