The image shows the dependency graph for tables used in a car-racing example in
which the driver_w_mgr
table has a foreign-key column,
manager_id
, which is linked to the driver_w_mgr
table's primary-key column driver_id
.
There are two boxes, with labels team
and
driver_w_mgr
— the two table names.
At the bottom is the driver_w_mgr
box. An arrow goes from
this box to itself. The arrow has two labels: (1) driver_id
(PK), at
the arrowhead end, and (2) manager_id
(FK), at the arrow-origin
end.
At the top of the diagram, above the driver_w_mgr
box, is
the team
box. There's an arrow from the driver_w_mgr
box to the team
box. It has two labels: (1) team_id
(PK), at the arrowhead end, and (2) team_id
(FK), at the arrow-origin
end.
At the lower-left corner of the diagram is a box with title Legend:. The box has these two rows of text: PK: Primary Key and FK: Foreign Key.