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 maximum number of tables that can be joined ?

8 Answers   IBM, TCS,


how to u check the query is executing or not ?where will u check for sqlcode ?

6 Answers   Infosys,


What is reorg?

0 Answers  


Which command is used to connect to a database in DB2 ? Give the Syntax.

0 Answers   MCN Solutions,


What is the role of schema in the db2 database?

0 Answers  






How to create db2 table in mainframe?

0 Answers  


COBOL PRECOMPILER ERROR: "XXXXXX" (TABLE) PREVIOUSLY DECLARED OR REFERENCED DCLGEN VARIABLES GETS IMPORTED TWICE FOR ONLY ONE EXEC SQL STATEMENT. WHAT COULD BE THE PROBLEM?

1 Answers  


What are the levels of isolation available with DB2V4

2 Answers   IBM,


What type of database is db2?

0 Answers  


What is db2 look?

0 Answers  


My DB2 program first read the data from a file and then it look into a table with the data it got from the file.If we did not bind the program , should the file read before SQL execution be success??

2 Answers   Xansa,


What is filter factor?

2 Answers  


Categories