Referential Integrity

<< Click to Display Table of Contents >>

Navigation:  Tables > Table Relations >

Referential Integrity

Previous pageReturn to chapter overviewNext page

Example of Referential Integrity

An example of Referential Integrity is the Orders database, part of the Borland DBDemos, distributed via the Borland/Embarcadero development tools:
Borland-DBDemos

When Referential Integrity is specified for a pair of tables (e.g. Customer and Orders), a .VAL file is created with each of the tables specified in the relation (e.g. Customer.VAL and Orders.VAL).
If a table like the Parts.db table has referential relations to more than one other table, the Parts.VAL file will specify it's collection of relations.

Displaying the Referential Integrity descriptor of the Parts.db table

Ref-Int-Parts.db

PdxEditor displaying the Referential Integrity descriptor for Parts.db (Borland DBDemos).

it can be seen, that relative to the Vendors table, the Parts table is the Dependent table (on Many side of a One-to-Many relation),
and to the Items side it is the Master table (on the one side of a One-to-Many relation).
The Key Field Numbers in Table is the field position in the Self table.
The Key Field Numbers in Other Table  is the field position in the distant table.

__________________________
PdxEditor Application Help, 21 May 2026; © 2010-2026 Niels Knabe