autoJoin

Join two tables

Join two tables that have common or overlapping columns.

This function performs an inner join based on similar column names in the two tables. If the two tables don't have similar column names, a cross join is done.

Operator Usage in Easy Mode

  1. Click + on the parent node.
  2. Enter the Auto Join operator in the search field and select the operator from the Results to open the operator form.
  3. Enter or select a table to join on the left of the table.
  4. Enter or select a table to join on the right of the table.
  5. Click Run to view the result.
  6. Click Save to add the operator to the playbook.
  7. Click Cancel to discard the operator form.

Usage Details

autoJoin(leftTable, rightTable)

Input
leftTable: left table
rightTable: right table

Output
Inner join of two tables by similar column names

Example

Input
leftTable:

a
1
2
3
4
5

rightTable:

a
5
6
7
8
9
autoJoin(leftTable, rightTable)

-- will produce table with value 5 (inner join)

-- if you rename column name from "a" to "b" on leftTable 
-- autoJoin(leftTable, rightTable) will produce table with (a, b) columns, and all possible combinations of values

Did this page help you?