What is the most efficient way to write a select statement with a "not in" subquery?

Viewed 10398

What is the most efficient way to write a select statement similar to the below.

SELECT *
FROM Orders
WHERE Orders.Order_ID not in (Select Order_ID FROM HeldOrders)

The gist is you want the records from one table when the item is not in another table.

5 Answers
Related