I have a list or set of values that I would like to know which of them do not currently exist in the table. I know that I can find out which of them exist:
SELECT * FROM Table WHERE column1 IN (x,x,x,x,x)
Many are the values that I check. Is there a way to find out which values in this set do not exist in column1? Basically, I am looking for the reverse sql statement above.
This is for the report, so all I need is values that do not exist to return.
I have and can do it with the left join and put the values in another table, but the values I check are always different, and hoped to find a solution that would not include clearing the table and inserting the data first. Trying to find the best solution for me, if it exists.
source
share