When doing a subselect with NOT IN, as in SELECT name FROM customer WHERE customer_id NOT IN ( SELECT customer_id FROM salesorder ); (from Bruce Momjian's book) I get no rows if the result column returned by the subselect contains NULL values. It works as expected if I remove the NULL values from the result set. Is this behaviour correct and if so, why? I am using 7.1 beta 4. Regards, Frank
- Re: [SQL] Weird NOT IN effect with NULL values Frank Joerdens
- Re: [SQL] Weird NOT IN effect with NULL values Bruce Momjian
- Re: [SQL] Weird NOT IN effect with NULL values Peter Eisentraut
- Re: [SQL] Weird NOT IN effect with NULL values Stephan Szabo
- Re: [SQL] Weird NOT IN effect with NULL values Ken Kline
- Re: [SQL] Weird NOT IN effect with NULL values Tom Lane
- Re: [SQL] Weird NOT IN effect with NULL values Josh Berkus
- Re: [SQL] Weird NOT IN effect with NULL values Bruce Momjian