how can you access index

Answers were Sorted based on User's Feedback



how can you access index..

Answer / mani

After creating index by using CREATE command
CREATE UNIQUE INDEX IDX_EMP ON EMPLOYEE(EMP_ID)

To retreive index:

SELECT INDEX_NAME FROM USER_INDEX WHERE TBNAME='EMPLOYEE'

Is This Answer Correct ?    4 Yes 1 No

how can you access index..

Answer / pandu

first of all create index
create index<indexname> on <tablename>(<columnname>);
after that we have to access to that by
Select * from <indexname>


Correct me is am i wrong...
Thank You.

Is This Answer Correct ?    5 Yes 3 No

how can you access index..

Answer / ashok kumar

we generally use the folling query for create index

CREAT INDEX <index name> on <table name>(cols1,cols2,...)

for accessing columes :

SELECT ENAME FROM EMP
WHERE cols1 and cols2

Is This Answer Correct ?    1 Yes 0 No

how can you access index..

Answer / raghu

first we have to def indexs.
select indexname from sysibm.sysindexs where tbname = tablename

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More DB2 Interview Questions

What is the function of the Data Manager?

2 Answers  


What is a Cartesian product?

2 Answers  


What is an inner join, and an outer join ?

1 Answers   CTA,


How can you do the explain of a dynamic sql statement?

0 Answers  


How to resolve the -305 error code in DB2? And also please let me know, how to resolve the db2 error codes.

7 Answers   TCS,


What is db2 command?

0 Answers  


What are PACKAGES ?

3 Answers  


What are the different types of base tables?

0 Answers  


What do you mean by NOT NULL WITH DEFAULT? When will you use it?

3 Answers  


What can the Locate option of the Repair Utility accomplish?

2 Answers  


what is dynamic cursor?gives syntax for this?

1 Answers   TCS,


What is db2 look?

0 Answers  


Categories