Corel wordperfect office 2002 User Manual

Page of 394
Ÿ
One-to-one
¾
a unique field in a table is linked to a unique field in another table. There is a
direct relationship between the tables in which there is only one record in either table for the
unique value.
Ÿ
One-to-many
¾
a unique value in the linked field of a parent table is linked to a non-unique
field in a child table. For example, a single customer may have many orders for products.
Ÿ
Many-to-one
¾
a parent table of several non-unique records is linked to a child table that
contains only unique values. For example, you could link a table that contains customer
information with a table that contains telephone numbers and area codes. There are many
customers per area code, but each customer name is unique.
To create a data model
Click File New Data model.
From the list box at the bottom of the Add object dialog box, choose one of the following
objects:
Ÿ
Tables
¾
lets you search for tables
Ÿ
Queries
¾
lets you search for queries
Ÿ
SQL
¾
lets you search for SQL
Click Browse
.
Choose the drive and folder where the object is stored.
Click OK.
Hold down CTRL, and select more than one object from the list.
Click Add.
Click Close.
To create a link
Click the field in the parent table from which you want to create a link.
Drag the chosen field to the field you want to link to in the child table.
If referential integrity exists between the tables, the links will appear. If referential integrity
does not already exist, the Link property dialog box will open.
In the Link property dialog box, choose the parent table from the Parent tables list box.
Choose a parent field from the Parent fields list.
Click the right arrow.
Choose the child table from the Child tables list box.
Choose a child field from the Child index list.
Click the left arrow to add it to the Child fields list.
To remove a link
Click the link.
Click Edit Links.
Choose the link from the Links box.
Click Unlink.
Working with forms
365