The following query returns the orders that contain "Queso Cabrales" (ProductID=11) product:
SELECT O.OrderID, O.OrderDate, O.CustomerIDFROM dbo.Orders OWHERE O.OrderID IN ( SELECT OD.OrderID FROM dbo.[Order Details] OD WHERE OD.ProductID = 11 )
No comments:
Post a Comment