Untitled
Untitled
Untitled
row
Figure 3.30
the CAR relation,
with two candidate keys
The CAR relation in Figure 3.30 has two candidate keys:
License_number and Engine_serial_number.
It is common to designate one of the candidate keys as the primary key
of the relation.
This is the candidate key whose values are used to identify tuples in the
relation.
We use the convention that the attributes that form the primary key of a
relation schema are underlined.
Notice that when a relation schema has several candidate keys, the
choice of one to become the primary key is somewhat arbitrary;
however, it is usually better to choose a primary key with a single
attribute or a small number of attributes.
The other candidate keys are designated as unique keys and are not
underlined.