Re: Need an explanation - Mailing list pgsql-general

From Tom Lane
Subject Re: Need an explanation
Date
Msg-id 10132.1367980246@sss.pgh.pa.us
Whole thread Raw
In response to Need an explanation  (Alan Nilsson <anilsson@apple.com>)
Responses Re: Need an explanation
List 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 by date:

Previous
From: Alan Nilsson
Date:
Subject: Need an explanation
Next
From: Alan Nilsson
Date:
Subject: Re: Need an explanation