[]
        
(Showing Draft Content)

Union Data

Union Data Icon

The Union Data ETL command allows you to merge the rows of two or more input tables that have the same or common column names. The result is a union set of all the rows from all the input tables. You can include all or just the common columns in the input tables.

Union Data Illustration

Configuration

Union Command Configuration

In the configuration panel of the Union Data, you can choose to include all the columns in all the input tables or just the common columns in all the input tables. You will be presented with a preview list of how the columns will be merged and what the output column names will be.

Example

In this example we have orders data coming from two different systems. The column names are different, the first system stores amounts in dollars while the second stores it in cents. We need to standardize the columns and how data is stored before we can merge the records.

The data from the first system looks like this

Orders System 1

and from the second system:

Orders system 2

We started with two Input Sources and connected them to Select Column commands to change the column names to standard column names. We added a Add Column command to calculate the value of amounts in the second source to dollars. Finally we added Add Column with a constant to identify the source of the data. Finally, when the columns from both flows have identical columns we used a Union Data command to merge the records from the two sources as can be seen in the screenshot below.

Union Data Example

Upload the Excel file to create data source and reconfigure the input sources of the data flow in the attachment to examine the example.

UnionDataExample.zip