Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Questions on Index
Question1: "Tuning SQL statements" says don't index a column that only
appears in the WHERE clause with functions (except functions MAX, MIN)
or operators. Does this mean I won't have a performance advantage if I
index mycol and I say
select * from mytable where upper(mycol)='TEST';
Question 2: If I have an index on mycol1 and another on mycol2, will the performance not be as good as if I have one index on a composite index on mycol1 and mycol2 together? Why?[note]
For both questions, assume all columns have good selectivity (if that's relevant). Thanks for advice.
Yong Huang