|
Raj,
the
index will not be used.
think
about it.
for
those records that do not have a value (are null) for the indexed column -
there is not an entry in the index - so they can not be evaluated to return a
row.
secondly, even if all rows were represented in the index - why perform
two queries - one for the index, and then one for the table - to evaluate
whether to use the row in the query?
either
way, it would not work properly.
that's
why Oracle gave us function based indexes - so that we could use a function and
get fast results from a large table.
hope
this helps.
Tom Mercadante
|
Title: NVL and index usage
- NVL and index usage Jamadagni, Rajendra
- Re: NVL and index usage Shaleen
- Re: NVL and index usage Mogens N�rgaard
- RE: NVL and index usage Jamadagni, Rajendra
- Re: NVL and index usage Connor McDonald
- RE: NVL and index usage Mercadante, Thomas F
- RE: NVL and index usage Jamadagni, Rajendra
- RE: NVL and index usage Jamadagni, Rajendra
- RE: NVL and index usage Mark Richard
- RE: NVL and index usage Khedr, Waleed
- RE: NVL and index usage Khedr, Waleed
- RE: NVL and index usage tim
