

In a Sales database, the Customers table and the Invoice table can each use the Customer ID field to uniquely identify each customer and purchase. There may be multiple foreign keys in a table. Values in foreign keys don't have to be unique in the table, and they can be empty (null).

To create, change, and view the relationships in your database, see Working with the relationships graph. A relationship is established when the value in one field, called the match field (sometimes called a key field) on one side of the relationship compares successfully with a value in the match field on the other side of the relationship according to the criteria you specify in the relationship.įor example, you can create a relationship such that when the value in the Student ID field in a Students table equals the value in the Student ID field in a Classes table, the records in the two tables are related. To create related tables, you define a relationship between two tables.
