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

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.
主站蜘蛛池模板: 东平县| 赞皇县| 江都市| 德阳市| 赞皇县| 如东县| 望谟县| 阿克陶县| 隆昌县| 乌兰县| 光泽县| 永仁县| 锡林浩特市| 留坝县| 满洲里市| 河南省| 屏边| 庆云县| 连州市| 长宁县| 红河县| 两当县| 三原县| 金川县| 和田县| 维西| 清水县| 南澳县| 安仁县| 内乡县| 依兰县| 托克托县| 黔南| 玉林市| 万盛区| 胶州市| 东丰县| 永善县| 苍山县| 福清市| 微博|