Relational Model:
A set of fields is a candidate key for a relation if :
Super key:
If the condition of part 2 in the above definition is false, it is a super key.Primary key:
Most of the time, the primary key is a single field, but in very special circumstands, two or more fields can share the job. This type of key is called a multifield key or compound key.
In Microsoft Access, hold Shift + click more than one row in the design view table, then ask KEY command.
Foreign key:
Set of fields in one relation that is used to 'refer’ to a tuple in another relation.
(Must correspond to primary key of the second relation.)
Like a 'logical pointer’.
If all foreign key constraints are enforced, referential integrity is achieved, i.e., no dangling references.