I need to compare two tables, that contain recipes, when one of the records don't match, I need to see that information. I have constucted the following query, but it doesn't return the unmatched records (there is one extra component in the OldR table.
SELECT DISTINCT NewR.Part, NewR.Ingredients, NewR.Component, NewR.BatchReq
FROM NewR
WHERE (((NewR.Part) Not In (SELECT DISTINCT Part From [OldR]))) OR (((NewR.Ingredients) Not In (SELECT DISTINCT Ingredients From [OldR]))) OR (((NewR.Component) Not In (SELECT DISTINCT Component From [OldR]))) OR (((NewR.BatchReq) Not In (SELECT DISTINCT BatchReq From [OldR])));
Any ideas will be appreciated, thanks.
Thanks for the help.
Greg
SELECT DISTINCT NewR.Part, NewR.Ingredients, NewR.Component, NewR.BatchReq
FROM NewR
WHERE (((NewR.Part) Not In (SELECT DISTINCT Part From [OldR]))) OR (((NewR.Ingredients) Not In (SELECT DISTINCT Ingredients From [OldR]))) OR (((NewR.Component) Not In (SELECT DISTINCT Component From [OldR]))) OR (((NewR.BatchReq) Not In (SELECT DISTINCT BatchReq From [OldR])));
Any ideas will be appreciated, thanks.
Thanks for the help.
Greg