I get what you are trying to do, but I don’t understand the logic for the Resultant Table. We agree that the rows for “a” and “c” as primary key have different values in the 2 table, but from which table are the values for Col2 and Col3 are coming from for the Resultant Table? It looks like they came from Table 1 for “a”, and from Table 2 for “c” (row “a” has values a,a from Table 1, row “c” has values a,a from Table 2).
What is the logic for choosing values from Table 1 or Table 2 for the Resultant Table?
And do all primary keys from Table 1 exist in Table 2? And they’re primary keys in both tables (meaning no duplicates, and 1-to-1 relation)?
EDIT: Regardless of the logic (I’ll let you implement this part), I’ll give you 2 ways of doing this:
If the structures are the same on both tables and they have the same primary key, you can use the Table Difference Finder node: Table Difference Finder – KNIME Hub
Just make sure that both tables are sorted the same way (the best way is to sort by the primary key on both)
You can use an inner join joining the 2 tables on Col1 (primary key) and getting the columns from both tables. Then use Rule-based Row Filter with the rule of Col2 from Table 1 not equal to Col2 from Table 2 and Col3 from Table 1 not equal to Col3 from Table 2
Here’s a quick workflow that contains both methods:
I think I had made a mistake explaining the question. If the rows are different than it will take the row from first table. So, the resultant table will be