I have a table with 3 colums : PersonalCode, Name and SpecialOrder.
The PersonalCode is the primary index and I have also an index on SpecialOrder,Name columns.
However the following select:
Select PersonalCode From MyTable
Order By SpecialOrder,Name
doesn't use the SpecialOrder,Name index at all.
If I watch it in Explain Plan window I can see that :
SELECT STATEMENT, GOAL = CHOOSE
SORT ORDER BY
TABLE ACCESS FULL
How can I make the index work?
Thank you in advance
Hungary