A relationship defines the dependency each source has on another. Typically, there is a master source and its related child sources. You can specify the type of relationship between the sources.
The Relationships window opens.
For example, two queries are used to retrieve bank transaction information. One query retrieves basic information, including checkbook ID, number, and amount. The other retrieves line detail information. To allow Integration Manager to work with both queries, a relationship must be created between them. In this case, the BR TRX Header query would be considered the master. Each time Integration Manager reads a record from this query, the corresponding record should be read from the BR TRX Line query.
To set up this relationship, you need to draw a line between the corresponding columns in the two queries. In this case, the corresponding column is Index Number. You can resize the window to show more of the query information.
To improve the performance of your integration, we recommend that you sort the queries based on the columns used for the query relationship. To sort the queries, open the Properties window for the source, and choose the Sorting tab. |
The Select Relationship Type window opens.
The relationship type indicates how many records exist in the child query for each record in the master. The four types of query relationships are summarized in the following table.
Type |
Description |
1 |
There are zero records or one record in the child for each record in the master. |
2 |
There is exactly one record in the child for each record in the master. |
3 |
There can be zero or more records in the child for each record in the master. This is the default relationship type. |
4 |
There must be at least one record in the child for each record in the master. |
The default relationship type is 3, indicating there are zero or more records in the child query for each record in the master. |