Search Postgresql Archives

Re: Need an explanation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



that was indeed the case.  Did not think to look at that, thanks much for the kick :)

alan

On May 7, 2013, at 7:30 PM, Tom Lane wrote:

> Alan Nilsson <anilsson@xxxxxxxxx> 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
> 
> 
> -- 
> Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general



-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux