Keys (PDM)

A key is a column, or a combination of columns, that uniquely identifies a row in a table. Each key can generate a unique index or a unique constraint in a target database.

The physical diagram supports the following types of keys:

Example

The TITLE table shown below has a primary, alternate and foreign key:



  • TITLE_ID is the primary key and consists of the column TITLE ISBN which identifies each book title in the table

  • TITLE_NAME is an alternate key containing the columns TITLE NAME and TITLE TYPE. It allows each title to be identified by its name and type, The fact that it is an alternate key indicates that there is a constraint that no two titles of the same type can have the same name

The TITLE table also contains the foreign key column PUBLISHER ID. This column references the primary key column in the Publisher table.