| От | Alexander Pyhalov |
|---|---|
| Тема | Re: I don't understand something... |
| Дата | |
| Msg-id | 4E8968DD.2060207@rsu.ru обсуждение исходный текст |
| Ответ на | Re: I don't understand something... (Achilleas Mantzios <achill@matrix.gatewaynet.com>) |
| Ответы |
Re: I don't understand something...
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера