I have a set of values (IDs) and i want to use "not in" in my query
if i use
select ...
where ColumnA not in (1234, ...,...,...,..more than 3000 values -IDs)
it works but... but returns resultset of row 2.
I have also a second Column B and want to look the query also in this Column
ColumnA ColumnB
1234 NULL
NULL 1234
I want that the "not in" looks in both columns but i believe the NULL value make my query not working
I want the result to say ...no row returned
the OR clause doesn't work:
select ...
where ColumnA not in (1234) or ColumnB not in (1234)
gives back row1 and 2.
ColumnA is not null and ColumnA not in ().