What is a clustering index ?

Answer Posted / mainframe.rahulz

A DB2 index is a clustering index if the CLUSTER keyword is
specified when the index is created.In a clustered index
rows are stored continuously in a an
order.

When you define a clustering index on a DB2 table, you
direct DB2 to insert rows into the table in the order of the
clustering key values. The first index that you define on
the table serves implicitly as the clustering index unless
you explicitly specify CLUSTER when you create or alter
another index. For example, if you first define a unique
index on |the EMPID column of the EMP table, DB2 inserts
rows into the EMP table in the order of the EMPLOYEE ID
unless you explicitly define another index to be the
clustering index

Eg:CREATE INDEX Index name
ON tablename CLUSTER;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is db2 a programming language?

606


How do I add a column in db2?

591


What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?

710


What is the maximum number of columns in a db2 table?

723


What are types of indexes?

593






What is universal database?

617


What does db2 mean?

587


How to view db2 table structure?

592


What are packages in db2?

597


How to connect to db2 database from windows command line?

562


Define declaration generator (dclgen).

667


Explain in detail about buffer manager and its functionalities?

564


Name the lockable units in DB2?

664


Explain the benefits you can get from mainframe connect?

522


What is access path in db2?

562