Re: I don't understand something... - Mailing list pgsql-general

From Alexander Pyhalov
Subject Re: I don't understand something...
Date
Msg-id 4E8968DD.2060207@rsu.ru
Whole thread Raw
In response to Re: I don't understand something...  (Achilleas Mantzios <achill@matrix.gatewaynet.com>)
Responses Re: I don't understand something...  (hubert depesz lubaczewski <depesz@depesz.com>)
List pgsql-general
On 10/03/2011 11:19, Achilleas Mantzios wrote:
> Alexander, that's a classic one,
> rewrite your last query as :
>
> SELECT count(employee_id) from employees where employee_id not in
>     (select manager_id from employees WHERE manager_id  IS NOT NULL);
>
> NULLS semantics are sometimes not so obvious.

Thanks.
It's confusing, that IN check works as expected, but NOT IN works this
way...

--
Best regards,
Alexander Pyhalov,
system administrator of Computer Center of Southern Federal University

pgsql-general by date:

Previous
From: Achilleas Mantzios
Date:
Subject: Re: I don't understand something...
Next
From: Magnus Hagander
Date:
Subject: Re: One-click installer, Windows 7 32-bit, and icacls.exe