Subselects and NOTs

Поиск
Список
Период
Сортировка
От Vadim B. Mikheev
Тема Subselects and NOTs
Дата
Msg-id 34E93359.2A2B6A@sable.krasnoyarsk.su
обсуждение исходный текст
Ответы Re: [HACKERS] Subselects and NOTs
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [QUESTIONS] Trouble creating view\
Следующее
От: Brook Milligan
Дата:
Сообщение: results of regression tests: NetBSD/i386 v1.3