views:

72

answers:

2

Does OR clause suppress Indexes, If yes can someone provide appropriate example?

+8  A: 

No, the use of the OR clause does not cause an index not to be used.
The OR clause only splinters the filtration decision path, and can be very costly for this depending on the complexity of the query & data involved.

OMG Ponies
With bitmap indexes, OR can use indexes and be very fast. Of course bitmap indexes have other drawbacks, depending on the situation.
Shannon Severance
Hi Kemp, find the example where or suppress the index.
P Sharma
+2  A: 

I don't know what prompted you to ask this question but remember:

"Full scans are not always evil; indexes are not always good" (Tom Kyte in "Effective Oracle by Design")

Rene
pls, See my latest comments
P Sharma