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!

Explain plan cardinality discrepancy

AParmMay 18 2018 — edited May 18 2018

The following is an excerpt from an explain plan, could anybody explain the index range scan of DIAGNOSIS which returns 5 rows, but the corresponding table access returns 2688K rows, doesn't seem to make sense

|  10 |    NESTED LOOPS SEMI                                                                     |                                 |     1           |    62   |

|* 11 |     TABLE ACCESS BY INDEX ROWID BATCHED                             | EPISODES              |     1          |    38   |

|* 12 |      INDEX RANGE SCAN                                                                     | IDX_EPISODES      |     1          |           |

|* 13 |     TABLE ACCESS BY INDEX ROWID BATCHED                             | DIAGNOSIS             |  2688K    |    61M|

|* 14 |      INDEX RANGE SCAN                                                                     | IDX_DIAGNOSIS     |     5         |           |

This post has been answered by Jonathan Lewis on May 18 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 15 2018
Added on May 18 2018
7 comments
580 views