I need to select some rows that don’t have certain values in 2 columns. Currently I am doing this for a single column by doing the following:
SELECT *
FROM MyTable
WHERE (ManufacturerID = @ManufacturerID)
AND ItemID NOT IN(
SELECT ItemID FROM UpdateMyTable WHERE ManufacturerID=@ManufacturerID
)
But now I need to filter out rows that don’t contain 2 column values at the same time: ItemID and ChildItemID
How would I accomplish this?
OR