Enrich Data Enrich Data

Join of the data tables based on connection by the key fields — analogue of the LEFT JOIN operation in SQL. The node performs the action similar to the Left join of the Join node but the number of joined tables is optional.

Ports

Input

  • Main table Main table is the left table to be joined in the context of the SQL queries terms.
  • Joined table Joined table is the right table to be joined in the context of the SQL queries terms.
  • Add port Add another port enables to create new ports for the subsequent joined tables that will be automatically numbered.

Output

  • Output data set Output data set: the table that contains fields of all tables supplied to the input ports, with the exception of the joined tables fields selected as the key ones. Prefixes can be optionally added to the field captions of the joined tables.

Wizard

  • Key fields configuration area: it is required to select a checkbox in the column of the joined table opposite the main table field that must become the key one. It is required to select the field from the drop-down list by which the tables will be connected. Activated Enabled filter option makes available compatible fields that are not still connected with key fields of the main table, deactivated Disabled filter option enables to select any of the fields compatible by type.
  • Use prefixes: selection of this checkbox enables to add prefixes to names and captions of the fields from the joined tables in the resulting table.
    • Name prefix: the prefix added to the name of the joined table fields is specified in this field. Composition of the name prefix conforms to the rules of Features of data set fields.
    • Caption prefix: the prefix added to the caption of the joined table fields is specified in this field. It is named according to Features of data set fields.

For example:

Let's consider three tables as an example. A person - the main table and two joined: City and District.

Main table:

Name City Id
Andry 1
Harold 2
Paul 1
Rose 4

Joined table:

Id City
1 Ottawa
2 Washington
3 London

Joined table 2:

City Id District
1 Central
2 King
3 Southwark
4 Far Eastern
Connection order when joining.
Figure 1. Connection order when joining.

Resulting table:

Name City Id City District
Andry 1 Ottawa Central
Harold 2 Washington King
Paul 1 Ottawa Central
Rose 4 <null> Far Eastern


Articles in Section:

results matching ""

    No results matching ""