Skip to main content

CPM

Keys

Foreign Keys are used to connect different tables of your data model. The 'Keys' section provides an overview of all connections in your analysis and allows you to create new ones.

Foreign keys list

34439946.png

The Foreign keys list displays the assigned connections between the tables in your data model.

  1. Add foreign key: create a new connection between two data tables (see 'Add or edit foreign key' section below).

  2. Search: search a table name to look for foreign keys assigned to it.

  3. Connected table 1: the first element that composes the pair of connected tables.

  4. Connected table 2: the second element that composes the pair of connected tables.

  5. Delete: deletes the foreign key. You must hover your mouse over the desired key to display this button.

  6. Edit: edits the foreign key (see 'Add or edit foreign key' section below). You must hover your mouse over the desired key to display this button.

Add or edit foreign key

34439945.png

The Edit foreign key screen allows you to create or modify existing connections between tables.

  1. Table 1: here you can select the first table you wish to connect.

  2. Table 2: here you can select the table you wish to connect Table 1 to.

  3. Foreign key column of table 1: select the foreign key column that corresponds to the column of table 2.

  4. Foreign key column of table 2: select the foreign key column that corresponds to the column of table 1.

  5. Add another connection: if more than one foreign key is necessary to connect these tables, click on the 'Add another connection' link to add one more foreign key selection row.

  6. Delete: click on the icon to delete the selected foreign key pair.

Graphic Editor

You can also add foreign keys relations directly on the Graphic Editor.