I am creating an index on Emp table Empno column,if u using
this indexed column in ur SELECT stmt. where clause,then how
do u know that yr index will be working or nor?
Thanks Advance...

Answers were Sorted based on User's Feedback



I am creating an index on Emp table Empno column,if u using this indexed column in ur SELECT stmt...

Answer / satish

Do the explain plan.if it is not using ur created index
then use hints to use ur created index

Is This Answer Correct ?    6 Yes 0 No

I am creating an index on Emp table Empno column,if u using this indexed column in ur SELECT stmt...

Answer / suresh ramsing

You execute your query like
explain plan for select sal from emp where empno='1224';
after that check this below one.
select * from table(dbms_xplan.display);
here u can find it'll be excuted by using index or TABLE ACCESS FULL

Is This Answer Correct ?    4 Yes 0 No

I am creating an index on Emp table Empno column,if u using this indexed column in ur SELECT stmt...

Answer / manoranjan sethy

by using SET AUTOTRACE ON EXPLAIN tool you can came to know weather such index is working or not.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

What is primary key and foreign key?

0 Answers  


how many values can the set function of mysql take? : Sql dba

0 Answers  


what is 'mysqlcheck'? : Sql dba

0 Answers  


what is the difference between char_length and length? : Sql dba

0 Answers  


Name the different types of indexes in sql and define them.

0 Answers  


What are the benefits of pl sql?

0 Answers  


Which table is left in left join?

0 Answers  


How does one use sql*loader to load images, sound clips and documents? : aql loader

0 Answers  


What is the difference between instead of trigger and after trigger?

0 Answers  


what is the difference between a local and a global temporary table? : Sql dba

0 Answers  


How many joins in sql?

0 Answers  


How many indexes can be created on a table in sql?

0 Answers  


Categories