官术网_书友最值得收藏!

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.
主站蜘蛛池模板: 武平县| 巴塘县| 聊城市| 太白县| 宜川县| 德安县| 双鸭山市| 昌邑市| 景德镇市| 迁安市| 大渡口区| 高青县| 施甸县| 于田县| 荥阳市| 安平县| 四川省| 塔河县| 方城县| 曲麻莱县| 抚远县| 丹棱县| 积石山| 梁山县| 泸州市| 凭祥市| 尉犁县| 塔城市| 长白| 勃利县| 巴林左旗| 佛冈县| 神农架林区| 平湖市| 凤山县| 永州市| 西青区| 绥化市| 两当县| 茂名市| 枣阳市|