[See also exercise database normalisation]





One-to-one relation:
    (could e.g. be used to link persons one-to-one to different groups of limited set of specified different group types. In this way space could be saved by reducing a number of group type attributes/properties).
One-to-many relation:
    Example 1: One project type may be run by many different project groups
    Example 2: One person may belong to many groups (may be not in semester 6 but anyhow)
Many-to-many relation:
    Example: Every person may participate in many groups each running different project types. This construct is not allowed therefore we created the 'groupperson'.

Strong(or regular) entities may be used by other databases (for example 'person') but weak entities containing foreign keys are dependent of the existence of another entity.

The strong relation 'projtype' may have 'projid's which not necessarily are run by any group. This is OK if the entity is strong (which it is). In the figure this is marked by a ring in the fork. As a contrast all persons ('personid') must belong to at lest one group ('groupid').

As before not two primary keys may have the same value or be empty in case it consists of many attributes.