Chapter 12. Database management systems on z/VSE 301
• Values - At the intersection of a column and row is a
value. For
example, PLANNING is the value of the DEPTNAME column in the row
for department B01.
Indexes
An index is an ordered set of pointers to rows of a table. Unlike the rows of a
table that are not in a specific order, an index must always be maintained in
order by DB2. An index is used for two purposes:
– For performance to retrieve data values more quickly
– For uniqueness
By creating an index on an employee's name, you can retrieve data more
quickly for that employee than by scanning the entire table. Also, by creating
a unique index on an employee number, DB2 will enforce the uniqueness of
each value. A unique index is the ...