Select the suggested table relationships that you want to use as foreign keys.
In the
View
Constraints
view of Enterprise Data Manager, right-click the schema that you ran the profiling job on and select
View Suggested Table Relationships
.
A window appears that shows the suggested table relationships.
Select the relationships that you want to define as foreign keys. You want to choose relationships that have a high inclusion percentage.
In this example, the TICKET table is the driving table and the TICKET_NUMBER column is the primary key for the TICKET table. Therefore, the relationships that have the parent table as TICKET and the parent column as TICKET_NUMBER are selected. The following image shows the suggested table relationships with the relationships selected:
Click
Submit
.
A window appears that confirms Enterprise Data Manager created the table relationships successfully. Click
OK
to close the window.
In the Enterprise Data Manager entity tree, select a table that you included in a foreign key relationship. In the right pane, select the Constraints tab.
The Constraints tab displays a list of table relationships.
In the Constraints tab, select the foreign key relationship that you created. Foreign keys have the Referential relationship type.
In the lower right pane, you can view the relationship details, such as the child and parent table columns. The following image shows the foreign key relationship details between the TICKET and TICKET_COUPON tables:
You can create as many foreign key relationships as required. The foreign keys define the entity that you use to archive data.