如何将下面的查询重写为消除嵌套查询的联接。
SELECT Company, State2
FROM Customers
WHERE Id IN
(SELECT CustomerId
FROM Orders
WHERE ((ShipDate BETWEEN '2004-01-1'AND'2004-12-31')AND(Shipping>5.0)));
如何将下面的查询重写为消除嵌套查询的联接。
SELECT Company, State2
FROM Customers
WHERE Id IN
(SELECT CustomerId
FROM Orders
WHERE ((ShipDate BETWEEN '2004-01-1'AND'2004-12-31')AND(Shipping>5.0)));