DriveWorks Pro 16: TableJoin [send feedback...]


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],[Left Match Column],[Join Type],[Data Rows Only],[Include Headers])


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.

Left 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:

  • Inner - returns rows from both tables where there is a match between the columns in both tables
  • Outer - returns all rows from the left table and from the right table

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.


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.

Example Data

CustomersAtoC Table

Amazon WarriorsParisFrance
Bolton BurnersConcordUnited States
Boston BullsHanoverGermany
Cambridge CatsLondonUnited Kingdom

Currency Table

United StatesDollar
United KingdomPound

Example Outcome

Amazon WarriorsParisFranceFranceEuro
Bolton BurnersConcordUnited StatesUnited StatesDollar
Boston BullsHanoverGermanyGermanyEuro
Cambridge CatsLondonUnited KingdomUnited KingdomPound

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"}

Table of Contents