I'm using Syabse IQ 12.7 ver.
I'm trying to get counts from tables with exists or not in statements.
here's the queries ;
SELECT A.CUSTNO
FROM TABLE_A A
WHERE A.CUSTNO NOT IN (SELECT B.CUSTNO FROM TABLE_B B)
SELECT A.CUSTNO
FROM TABLE_A A
WHERE NOT EXISTS(SELECT 1 FROM TABLE_B B WHERE A.CUSTNO = B.CUSTNO)
the thing is "not exists" lets say generates 1000 rows but "not in" generates 0 rows.
Any idea about this problem ? is it bug or something ?