| От | Ferruccio Zamuner |
|---|---|
| Тема | Re: Weird NOT IN condition in SELECT (PostgreSQL |
| Дата | |
| Msg-id | 3551.82.84.219.196.1088003088.squirrel@www.diff.org обсуждение |
| Ответ на | Re: Weird NOT IN condition in SELECT (PostgreSQL 7.4.3 (Richard Huxton <dev@archonet.com>) |
| Список | pgsql-hackers |
Richard Huxton said: > Ferruccio Zamuner wrote: >> Hi, >> >> I've following select, and I expect to receive a single record as result >> from it: >> >> select c.id >> from copie as c >> where c.enum=46857 and >> c.condizio_prestito = 'A' and >> c.id not in (select id_copia from testi_fermi_prenotati) and >> c.id not in (select id_copia from prestiti); >> >> but it doesn't give me any records at all. >> CREATE TABLE prestiti ( >> id_copia integer references copie(id) > >> CREATE TABLE testi_fermi_prenotati ( >> id_copia integer NOT NULL references copie(id), > > Are you sure you don't have any null values in prestiti.id_copia? Yes, there is a null value and it has not to be there. Thank you. Bye, \ferz
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера