Page History
Table of Contents | ||
---|---|---|
|
Overview
This step merges two sets of data based on the configured Join Fields.
Anchor | ||||
---|---|---|---|---|
|
Types of Join
The table below explains the types of Joins that can be applied using this step.
Join Type | Explanation | Diagram |
---|---|---|
Inner Join | Returns records that have matching values in both tables. | |
Left Outer Join | Return all records from the left table, and the matched records from the right table. | |
Right Outer Join | Return all records from the right table, and the matched records from the left table. |
Step Configuration
Follow the instructions below to configure a merge step:
- Ensure that your flow already has two different steps that need to be merged.
- Expand the Transformation Steps button on the left side of the Transformation Flow builder, to view a list of transformation steps.
- Drag the Merge step from this list.
- Connect the two input steps with the merge step one by one.
- Configure the merge step details in the step configuration panel:
Select a join type. (See the chart above for a description of each of the Join types.)
Note In case no join type is selected, the system will invoke a Cross Join. This joins each row on the left with every row on the right, and hence isn't an ideal option. However, it can be applied to generate test data.
- Join each field to its counterpart to merge them together.
- Click on the Add Join button to include a new join field in the panel.
- Repeat these steps for any fields that are to be joined.
- You can delete a join field by clicking on its delete icon if required.
- Once done, click Apply. The values will appear in the data preview panel.
The system will colour-code fields from the different steps to help differentiate between them.
Complete Example
The following example shows a full transformation flow that involves a merge step. Our example will merge data extracted In this example, we will cover how to create a simple transformation flow that merges data from a database table and a report by joining a common field. Therefore, this transformation will involve setting up (using two separate input steps (one for each of the data source), combining then combine them by using the merge transformation step, and then storing the merged data finally store the result into a database. You could always include additional steps in your own transformation flow.
...