Forced concatenation

There will be some cases in which you would like to concatenate two tables irrespective of the number of columns and name. In such a case, you should use the keyword Concatenate between two Load statements to concatenate those two tables. This is called the forced concatenation.

For example, if you have sales and budget data at similar granularity and you want to concatenate them, then you should use the Concatenate keyword to forcefully concatenate both tables, as shown in the following screenshot:

The output table after loading this script will have data for common columns, one below the other. For the columns that are not same, there will be null values in those columns for the table in which they didn't exist. This is shown in the following output:

You can see in preceding screenshot that the SalesAmount is null for the budget data, and Budget is null for the sales data.

Forced concatenation results in many null values, and thus you must handle nulls when you use forced concatenation.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset