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

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.
主站蜘蛛池模板: 长寿区| 东宁县| 奎屯市| 茂名市| 韶关市| 九台市| 永丰县| 龙口市| 商都县| 日喀则市| 沁水县| 乐业县| 东乌珠穆沁旗| 东明县| 新巴尔虎右旗| 进贤县| 格尔木市| 玉林市| 娱乐| 甘洛县| 达孜县| 内丘县| 梁山县| 黄骅市| 桦甸市| 星子县| 喜德县| 武山县| 花莲县| 永定县| 远安县| 吴江市| 兴国县| 衡东县| 旺苍县| 瑞安市| 梅河口市| 巴林左旗| 锡林郭勒盟| 巴彦淖尔市| 含山县|