











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












Any subset of the fields of a relation can be the search key for an index on the relation.
Search key is not the same as key (e.g. doesn’t have to be unique ID).
Typically, index also contains
auxiliary information that directs searches to the desired data entries
Can have multiple (different) indexes per file. e.g. file sorted by stid , with a hash index on c gpa and a B+tree index on st name.
What selections does it support?
Representation of data entries in index what kind of info is the index actually storing?
3 alternatives here
Clustered vs. Un-clustered Indexes Single Key vs. Composite Indexes Tree-based, inverted files, pointers
Can also be created on composite attributes
CREATE UNIQUE INDEX
St_Name ON
Student(stName ASC, stFName DESC)
Secondary Key Index
Records are stored on the basis of key attribute; three possibilities Sequential search Sorted on the basis of name Sort for command execution
Problematic
Secondary Key Index