December
1998 QUESTION 5 Total Marks: 20 Marks |
Click here to access other
questions
Click to access
|
(a) | What is an index, and why are indexes often used
in large database systems?
|
[2] | ||||||||||||||||||||||||||||||
(b) | There are several guidelines to help in choosing what indexes to define for a relational database. For each of the following guidelines, explain the reasons why it is often given: | |||||||||||||||||||||||||||||||
(i) Specify an unique index for the primary key attribute of each table. | ||||||||||||||||||||||||||||||||
(ii) Specify an index for foreign
keys that are used in joining tables.
|
[3] |
|||||||||||||||||||||||||||||||
(c) | For which non-key attributes might
it be useful to specify an index?
|
[2] | ||||||||||||||||||||||||||||||
(d) | Under what circumstances would the
designer of a large database decide not to use any indexes?
|
[2] | ||||||||||||||||||||||||||||||
(e) | What is meant by 'referential
integrity' in a database? Give a rule which ensures that referential integrity is maintained for: |
[2] | ||||||||||||||||||||||||||||||
|
[2] | |||||||||||||||||||||||||||||||
|
[2] | |||||||||||||||||||||||||||||||
With reference to the tables below,
give an example of an insertion and a deletion which are forbidden by these rules Course
Tutor
|
[2]
|
|||||||||||||||||||||||||||||||
(f) | How might referential integrity constraints be enforced in a database? | [3] |