Concatenating tables
Automatic concatenation
If the field names and the number of fields of two or more loaded tables are exactly the same, QlikView will automatically concatenate the content of the different statements into one table.
Example:
LOAD a, b, c from table1.csv;
LOAD a, c, b from table2.csv;
The resulting internal table has the fields a, b and c. The number of records is the sum of the numbers of records in table 1 and table 2.
Forced concatenation
Even if two or more tables do not have exactly the same set of fields, it is still possible to force QlikView to concatenate the two tables. This is done with the concatenate prefix in the script, which concatenates a table with another named table or with the last previously created table.
Example:
LOAD a, b, c from table1.csv;
concatenate LOAD a, c from table2,csv;
The resulting internal table has the fields a, b and c. The number of records in the resulting table is the sum of the numbers of records in table 1 and table 2. The value of field b in the records coming from table 2 is NULL.
Preventing concatenation
If the field names and the number of fields of two or more loaded tables are exactly the same, QlikView will automatically concatenate the content of the different statements into one table. This is possible to prevent with a noconcatenate statement. The table loaded with the associated LOAD or SELECT statement will then not be concatenated with the existing table.
Example:
LOAD a, b, c from table1.csv;
noconcatenate LOAD a, b, c from table2.csv;