Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cardinality Calculation.....

user9085814May 6 2014 — edited May 7 2014

Hi,

Selectivity refers to the fraction of rows from the rowset that meets the predicate requirement.
It can be calculated as reciprocal of number of distinct rows in the coulmn,If the distinct values in the column are evenly distributed.
If the distinct values in the column are not evenly distributed then optimizer looks for histogram for selectivity.


Cardinality refers to the number of rows from the rowset.
Can it be calculated as selectivity*num_rows in the coulmn/table ?


In Bitmap Index.
We used to create bitmap index on a coulmn , whose cardinality is low .
Here the cardinality can be calculated by : - num_distinct_rows/total_num_rows


My question is ,What is the difference between optimizer's cardinality and the cardinality based on which the Bitmap index is created ?

Thanks,

This post has been answered by unknown-7404 on May 7 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 4 2014
Added on May 6 2014
6 comments
3,163 views