Chapter 8

  1. Keys are important for the following reasons:

    a. They ensure that each record in a table is properly identified.

    b. They help establish and enforce various types of integrity.

    c. They serve to establish table relationships.

  2. The four main types of keys are candidate, primary, foreign, and non.

  3. The purpose of a candidate key is to uniquely identify a single instance of the table's subject.

  4. These are the Elements of a Candidate Key:

    a. It cannot be a multipart field.

    b. It must contain unique values.

    c. It cannot contain null values.

    d. Its value is not optional in whole or in part.

    e. It comprises a minimum number of fields necessary to define uniqueness.

    f. Its values must uniquely and exclusively identify each record in the table. ...

Get Database Design for Mere Mortals™: A Hands-On Guide to Relational Database Design, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.