Re: inner join on range criteria: unable to use index?
Isn't the index arranged something like this:
ColA ColB
1 1
1 2
1 3
1 4
2 1
2 2
2 3
2 4
If you're looking for all rows with colA > 1 and colB < 3, you go to the "2" section of colA in the index and then take all the rows in that section above "3" in the colB index. No table scanning necessary.
Or am I wrong?
Subject
Views
Written By
Posted
10212
August 11, 2008 04:34PM
3620
August 11, 2008 05:56PM
3683
August 11, 2008 06:04PM
3508
August 12, 2008 01:38AM
Re: inner join on range criteria: unable to use index?
3169
August 12, 2008 09:30AM
3118
August 12, 2008 07:11PM
3649
August 12, 2008 12:52PM
2989
September 26, 2008 11:38PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.