I've gotten the following:
OK, isn't this mathematically impossible? Any idea what's going on here?
Code:
db=# select count(*) from table1 where field1 in (select field2 from table2);
count
-------
175
(1 row)
db=# select count(*) from table1 where field1 not in (select field2 from table2);
count
-------
0
(1 row)
db=# select count(*) from table1;
count
-------
955
(1 row)
OK, isn't this mathematically impossible? Any idea what's going on here?