count - Strange result in DB2. Divergences queries -
a strange thing, don't know cause, happenning when trying collect results db2 database.
the query following:
select count(*) myschema.table1 t1 not exists ( select * myschema.table2 t2 t2.primary_key_part_1 = t1.primary_key_part_2 , t2.primary_key_part_2 = t1.primary_key_part_2 )
it simple one. strange thing is, same query, if change count(*) * 8 results , using count(*) 2. process repeated more times , strange result still continuing.
at example, table2 parent table of table1 primary key of table1 primary_key_part_1 , primary_key_part_2, , primary key of table2 primary_key_part_1, primary_key_part_2 , primary_key_part_3. there's no foreign key between them (because legacy ones) , have huge amount of data.
the db2 query select versionnumber sysibm.sysversions returns:
7020400 8020400 9010600
and client used squirrelsql 3.6 (without rows limit marked).
so, explanation strange result?
Comments
Post a Comment