I have a partitioned table (MYTABLE) on Oracle (11g). This is a quite large table, partitioned by INSERT_DATE column (without time).
The problem is that, Count(*) gives incorrect result.
The query below returns: 5,726,829,673
SELECT count(*) FROM MYTABLE WHERE INSERT_DATE >= TO_DATE('01/01/2015', 'DD/MM/YYYY')
The query below returns: 13,076,228,720
SELECT SUM(1) FROM MYTABLE WHERE INSERT_DATE >= TO_DATE('01/01/2015', 'DD/MM/YYYY')
How can it be possible? What is the reason for this difference?