I'm not sure how to write this query. I have a list of OrderIDs and I'd like SQL to show me the ones that do not appear in the DB.Lets say that my table looks like this:id orderId User Item1 22 joe potatoes2 23 Steve Apples3 24 Steve Bananas4 38 Dave Carrots
And the query looks like this:SELECT orderID FROM sales WHERE orderID IN ('22','51','38')
You'll notice that orderID 51 is not in the table. How do I make it tell me the orderIDs that do not appear?-SergioI use Microsoft SQL 2008