I have a row full of 1, 2, 3 and null. Why don't there two return the same result:
select * from foo where foobar not in (1, 2, 3);
select * from foo where foobar is not null;
The first one returns empty set, while second one works as advertised. Now I'm a bit confused :-D Is there some kind of "NULL in SQL for newbies" document anywhere? :-D
(I'm using Oracle, if that matters)