Create a Relationship

In order to use your data sources together in a query, you must create a relationship between them. A relationship specifies how two data sources are joined in a query. For this scenario, use the IDNUM columns in EMPINFO and SALARY as your join keys.
To create a relationship that specifies an inner join between the two data sources:
  1. In the SAS Information Map main window, select the Relationships tab.
  2. (Optional) Use your mouse pointer to enlarge the data source boxes on the tab.
  3. From the menu bar, select Insertthen selectRelationship.
  4. In the Relationship Properties dialog box, the two data sources are automatically selected in the Table 1 and Table 2 drop-down lists.
    Note: Because you are creating an inner join, do not select the Outer join check boxes.
  5. From the Cardinality drop-down list, select one to one.
    Note: The cardinality setting does not enforce the cardinality between data sources; it provides descriptive information about the relationship.
  6. To create a join condition for the relationship, select IDNUM from both Join keys drop-down lists and make sure that = is selected in the Operator drop-down list.
  7. Click Add to add the join condition.
    Relationship Properties dialog box
  8. Click OK. A line and the appropriate cardinality and join type indicators are displayed on the Relationships tab.
    Relationships tab with new relationship