oracle11g - Oracle Partitioned Table - How to Count -


i have partitioned table (mytable) on oracle (11g). quite large table, partitioned insert_date column (without time).

the problem that, count(*) gives incorrect result.

the query below returns: 5,726,829,673

select count(*) mytable insert_date >= to_date('01/01/2015', 'dd/mm/yyyy') 

the query below returns: 13,076,228,720

select sum(1) mytable insert_date >= to_date('01/01/2015', 'dd/mm/yyyy') 

how can possible? reason difference?


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

android - IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling -