Re: Need an explanation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Need an explanation
Дата
Msg-id 10132.1367980246@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Need an explanation  (Alan Nilsson <anilsson@apple.com>)
Ответы Re: Need an explanation  (Alan Nilsson <anilsson@apple.com>)
Список pgsql-general
Alan Nilsson <anilsson@apple.com> writes:
> Could someone explain to me what I'm missing here.

Probably there are some NULLs in dasp.asp_id.  NOT IN cannot succeed
when there are any nulls in the sub-select result: per SQL spec, the
outcome of such a test can only be FALSE or NULL.  If that isn't the
behavior you want, try recasting the query to use NOT EXISTS.

            regards, tom lane


В списке pgsql-general по дате отправления:

Предыдущее
От: Alan Nilsson
Дата:
Сообщение: Need an explanation
Следующее
От: Alan Nilsson
Дата:
Сообщение: Re: Need an explanation