Performs a join of the specified Tables based on matching values in columns in each of the two Tables.
TableJoin([Left Table],[Left Match Column],[Right Table],[Right Match Column],[Join Type],[Data Rows Only],[Include Headers])
Where:
Left Table is the Table to join on the left.
Left Match Column is the number of the column which contains values that will be matched against values in the right Table.
Right Table is the Table to join on the right.
Right Match Column is the number of the column which contains values that will be matched against values in the left Table.
Join Type (optional) is the type of join to perform (either "Inner" or "Outer"), if not specified, by default it will perform an inner join:
Data Rows Only (optional) is TRUE to only match against values in the data rows of the Table (not the header row). FALSE to match against values in all rows of the Table. By default this is FALSE.
Include Headers (optional) is TRUE to include the header row as the first row in the resulting Table. The header row will be the combination of the headers from both tables. FALSE to not include an additional header row. By default this is FALSE.
Rule | Meaning |
---|---|
TableJoin(DwLookupCustomersAtoC, 3, DwLookupCurrency, 1, "Outer",FALSE,FALSE) | Will return an outer join of the Tables CustomersAtoC and Currency. Values in column 3 of the CustomersAtoC Table are matched with values in column 1 of the Currency Table. |
CustomersAtoC Table
CustomerName | City | Country |
---|---|---|
Amazon Warriors | Paris | France |
Bolton Burners | Concord | United States |
Boston Bulls | Hanover | Germany |
Cambridge Cats | London | United Kingdom |
Currency Table
Country | Currency |
---|---|
France | Euro |
United States | Dollar |
Germany | Euro |
United Kingdom | Pound |
CustomerName | City | Country | Country | Currency |
---|---|---|---|---|
Amazon Warriors | Paris | France | France | Euro |
Bolton Burners | Concord | United States | United States | Dollar |
Boston Bulls | Hanover | Germany | Germany | Euro |
Cambridge Cats | London | United Kingdom | United Kingdom | Pound |
DriveWorks will return the Table above as an Array. This will look like:
Table returned as an Array |
---|
{"CustomerName","City","Country","Country","Currency";"Amazon Warriors","Paris","France","France","Euro";"Bolton Burners","Concord","United States","United States","Dollar";"Boston Bulls","Hanover","Germany","Germany","Euro";"Cambridge Cats","London","United Kingdom","United Kingdom","Pound"} |