Re: [BUGS] IN does not negate, exists does

2004-02-06 Thread Achilleus Mantzios
O kyrios Tom Lane egrapse stis Feb 5, 2004 : > Achilleus Mantzios <[EMAIL PROTECTED]> writes: > > Whereas IN seems to not working ok when negated as shown below: > > If the sub-select returns any NULLs then this behavior is per SQL spec. Thanx a lot! > > regards, tom lane

Re: [BUGS] IN does not negate, exists does

2004-02-05 Thread Tom Lane
Achilleus Mantzios <[EMAIL PROTECTED]> writes: > Whereas IN seems to not working ok when negated as shown below: If the sub-select returns any NULLs then this behavior is per SQL spec. regards, tom lane ---(end of broadcast)

[BUGS] IN does not negate, exists does

2004-02-05 Thread Achilleus Mantzios
EXISTS and IN seem to work ok for: dynacom=# SELECT count(*) from parts p where p.id in (select md.partid from machdefs md); count --- 12656 (1 row) dynacom=# SELECT count(*) from parts p where exists (select 1 from machdefs md where md.partid = p.id); count --- 12656 (1 row) Wh