Subselects and NOTs

From: "Vadim B(dot) Mikheev" <vadim(at)sable(dot)krasnoyarsk(dot)su>
To: hackers(at)postgreSQL(dot)org
Subject: Subselects and NOTs
Date: 1998-02-17 06:51:05
Message-ID: 34E93359.2A2B6A@sable.krasnoyarsk.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Brook Milligan 1998-02-17 07:19:39 results of regression tests: NetBSD/i386 v1.3
Previous Message Bruce Momjian 1998-02-17 05:08:35 Re: [QUESTIONS] Trouble creating view\