Using Foreign Keys

A foreign key is the relationship between a column or combination of columns in a table has and the primary key or unique index from another table. A foreign key contains the same values and defines the relationship between the two tables.

This section illustrates creating a foreign keys for tables and then dropping foreign keys that are no longer required.