I'm looking for a simple way of seeing which items in my IN-LIST are not actually in the table. It seemed really simple but I think I'm probably over-thinking it.
I have a long list of item codes supplied by a customer and they would like an attribute in the table updating for each of those item codes. However, I need to let the customer know if any of the codes he has provided don't actually exist in the table. I've tried doing a COUNT(*) and a GROUP BY and I've tried some variations using MINUS but it always comes down to the fact that if the value isn't in the IN-LIST I can't refer to it.
Example: Item table has 3 entries
Item_code
12345
98765
65436
User supplies list of
12345
98765
65436
81764
I want to highlight to the customer that the code '81764' is not a valid item code. I can do this easily with PL/SQL but I would like a SQL solution if possible.