Prevent duplicates
- Primary key
- Uniqueness constraint
In general
- SQL allows such tables to have duplicates.
- Suppressing duplicates would be very expensive.
- When there is a choice between:
- A very expensive desirable feature, and
- A much cheaper, compromised alternative
It is usually best to offer the user a choice.