AskReference
ProcessIntermediate

How do you configure the Joiner node in KNIME to perform a left outer join that retains all customers even if they have no transactions?

Configure the Joiner node by connecting the Customer Master Data to the upper input (left table) and the Transaction History to the lower input (right table). In the Matching Criteria section, select CustomerID as the key for both tables. Under Include in Output, tick only Matching rows and Left unmatched rows, and leave Right unmatched rows unchecked. This retains all customers, including those with no transactions.

In KNIME, the Joiner node combines two tables based on a shared key. To keep all customers even when they have no matching transactions, you perform a left outer join. First, add the Joiner node to the workflow and connect the output of the CSV Reader (Customer Master Data) to the top input port, which represents the left table. Connect the Excel Reader output (Transaction History) to the bottom input port for the right table. Open the Joiner configuration and, in the Matching Criteria section, choose CustomerID as the matching column for both the top input and the bottom input. In the Include in Output options, tick Matching rows, which includes customers who have purchases, and Left unmatched rows, which includes customers without any transactions. Leave Right unmatched rows unchecked so that transactions without a matching customer profile are not included. After applying and executing, the joined output will show every customer with their transaction details, and customers without transactions will have missing values in the transaction columns.

Key points

  • Connect Customer Master Data to the Joiner's top input (left table) and Transaction History to the bottom input (right table).
  • In Matching Criteria, set CustomerID as the matching column for both inputs.
  • Under Include in Output, tick Matching rows and Left unmatched rows.
  • Leave Right unmatched rows unchecked to omit transactions with no customer.
  • Execute the node to see all customers, with nulls in transaction columns for those without purchases.
Source:AI Agents and Applications· Integrating GenAI in your data ecosystem· p. 210–216

Related questions

Cover of AI Agents and Applications

AI Agents and Applications

Andrea De Mauro

MEAP Edition Version 7 · Manning Publications

View this ebook