Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Interview Index problem
oraclearora_at_googlemail.com wrote:
> aman.oracle.dba wrote:
>> Hello DBAs, >> >> "select empno,ename,sal,deptno from emp where deptno=10 and sal>1000" >> >> in the query given above I have 2 b-tree indexes on deptno and sal and >> using CBO, pls tell me oracle will use which index and >> why..................
You are both clear and incorrect. Reread Jonathan's response. Much as Connor was able to create any hit ratio desired one can easily modify the data and optimizer settings to either use or not use the indexes.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Tue May 30 2006 - 14:23:25 CDT