Lesson 5
Lesson 5
RELATIONSHIPS TOOL
• The Relationships Tool is used to define relationships between
tables based on common fields.
• Consider the University database we have been using that
contains a Department table and a Course table. These two
tables have the deptCode field in common:
– In the Department table, deptCode is the primary key and
is used to identify a specific department.
– In the Course table, the deptCode field is a part of the
primary key and indicates the department to which the
course belongs.
RELATIONSHIPS AND THE
RELATIONSHIPS TOOL
• To ensure that a row in Course is related to an existing row in
Department we can use the Relationships Tool to define a
relationship between these two tables based on this common
field.