Adding a foreign key:
1. Select Foreign Key from the tree. The Properties page appears.

2. Click the Create button. The Create Foreign Key - Introduction window appears. Select Next at the bottom of the page, the Name the Foreign Key window appears.

3. Enter a name for the foreign key in the Foreign Key Name text field.
4. Select the referencing table name.
5. Click check boxes beside the column names to specify the columns included in the foreign key.
6. Click the Next button. The Choose the primary key(s) from the other table window of the Create Foreign Key Wizard appears.

7. Select the name of the referenced table from the Referenced Table menu.
NOTE Only tables containing primary keys or unique indexes matching the schema of the foreign key are displayed.
8. All of the selected table columns that are primary keys or unique indexes are displayed.
9. Click the Next button. The Update action and Delete action window appears.

Related topic: