Subselects and NOTs - Mailing list pgsql-hackers

From Vadim B. Mikheev
Subject Subselects and NOTs
Date
Msg-id 34E93359.2A2B6A@sable.krasnoyarsk.su
Whole thread Raw
Responses Re: [HACKERS] Subselects and NOTs  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
Oracle 6, there is NULL into table b:

SQL> select * from a where x in (select * from b);

         X
----------
         2

SQL> select * from a where x not in (select * from b);

no rows selected

SQL> select * from a where not x in (select * from b);

no rows selected

Is 'not X in' the same as 'X not in' ? Currently we have:

vac=> select * from a where not x in (select * from b);
x
-
1
(1 row)

: subselect clause is "atomic" and NOT-s are never pushed into it.

Once again - what standard says ?

Vadim

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [QUESTIONS] Trouble creating view\
Next
From: Brook Milligan
Date:
Subject: results of regression tests: NetBSD/i386 v1.3