Different result of SELECT COUNT(*) [message #306995] |
Mon, 17 March 2008 08:24 |
juicyapple
Messages: 92 Registered: October 2005
|
Member |
|
|
Hi, I executed a table count with condition
SELECT COUNT(*) FROM TABLEA WHERE DTRECORD < '1-MARCH-2008'
The query returns different result values for each time I execute it and I found that the value keeps increasing.
1st result : 17036986
2nd result : 17037903
3rd result : 17038309
Any idea??? DTRECORD is in datetime datatype and it refers to current date time, so I just query the history records and it shouldn't has changes. Please advise.
|
|
|
|
|
|
Re: Different result of SELECT COUNT(*) [message #307002 is a reply to message #307000] |
Mon, 17 March 2008 08:39 |
juicyapple
Messages: 92 Registered: October 2005
|
Member |
|
|
I have one question, is that any possibility when a table size is huge, or because there are alot transactions on the table, it affects the select count(*) result even I am selecting on history data? I heard from someone it seems because the statistic is still updating...not very sure what is that..
|
|
|
|
|
|