Hi,
I am working on db2 and i have this table A
It has the following columns
TXN_KEY
TXN_DATE
there are some more but they are not required here
When i run a count(*)
db2 "select count(*) from A"
1
-----------
199854786
But suppose i run a query like
db2 "select count(*) from A where TXN_DATE<='20/06/2007'"
35208163
and
db2 "select count(*) from A where TXN_DATE<='20/06/2007'"
164438204
the sm of the last two queries doesnt sum up to the count(*) of the first query
I have run a REORG and a RUNSTATS as well..no solution yet
Please help
I am working on db2 and i have this table A
It has the following columns
TXN_KEY
TXN_DATE
there are some more but they are not required here
When i run a count(*)
db2 "select count(*) from A"
1
-----------
199854786
But suppose i run a query like
db2 "select count(*) from A where TXN_DATE<='20/06/2007'"
35208163
and
db2 "select count(*) from A where TXN_DATE<='20/06/2007'"
164438204
the sm of the last two queries doesnt sum up to the count(*) of the first query
I have run a REORG and a RUNSTATS as well..no solution yet
Please help
Comment