The explicit Join prefix can be preceded by the prefix Outer to specify an outer join. In an outer join, all combinations between the two tables are generated. The resulting table will thus contain combinations of field values from the raw data tables where the linking field values are represented in one or both tables. The Outer keyword is optional and is the default join type used when a join prefix is not specified.
Outer Join [ (tablename) ](loadstatement |selectstatement )
|tablename||The named table to be compared to the loaded table.|
|loadstatement or selectstatement||The LOAD or SELECT statement for the loaded table.|
Add the example script to your app and run it. To see the result, add the fields listed in the results column to a sheet in your app.
Table1: Load * inline [ Column1, Column2 A, B 1, aa 2, cc 3, ee ]; Table2: Outer Join Load * inline [ Column1, Column3 A, C 1, xx 4, yy ];
For more information about using inline loads, see Inline loads.
In this example, the two tables, Table1 and Table2, are merged into a single table labeled Table1. In cases like this, the outer prefix is often used to join several tables into a single table to perform aggregations over the values of a single table.