Icon

2019_​10_​03_​Comparing_​Two_​Tables_​new

Compare Two Tables

This workflow compares 2 tables with same structure meaning they have same number of columns and matching columns have same names and types. Comparison is done in a loop using Column Comparator node. In each loop iteration two columns are compared and and additional column with values TRUE or FALSE is created.

Compare two TablesThis workflow compares 2 tables with same structure meaning they have same number of columns and matchingcolumns have same names and types. Comparison is done in a loop using Column Comparator node. In each loopiteration two columns are compared and and additional column with values TRUE or FALSE is created.Forum link: https://forum.knime.com/t/data-set-comparison/18507https://forum.knime.com/t/compare-content-of-multiple-columns-in-pairs-of-two/15950 Table ATable BCompare columnJoin all column that need comparisonGet column namesStart loop for each pair of columnsTranspose to get names in one columnFilter so it only leaves two columnsCreate wild card for filteringAppend columnsCreate flow variable for second column nameNode 47Node 48Node 49 Table Creator Table Creator Column Comparator Joiner ExtractColumn Header Table Row ToVariable Loop Start Transpose Column Filter String Manipulation(Variable) Loop End (ColumnAppend) String Manipulation(Variable) Variable toTable Row Create CollectionColumn Table Rowto Variable Compare two TablesThis workflow compares 2 tables with same structure meaning they have same number of columns and matchingcolumns have same names and types. Comparison is done in a loop using Column Comparator node. In each loopiteration two columns are compared and and additional column with values TRUE or FALSE is created.Forum link: https://forum.knime.com/t/data-set-comparison/18507https://forum.knime.com/t/compare-content-of-multiple-columns-in-pairs-of-two/15950 Table ATable BCompare columnJoin all column that need comparisonGet column namesStart loop for each pair of columnsTranspose to get names in one columnFilter so it only leaves two columnsCreate wild card for filteringAppend columnsCreate flow variable for second column nameNode 47Node 48Node 49 Table Creator Table Creator Column Comparator Joiner ExtractColumn Header Table Row ToVariable Loop Start Transpose Column Filter String Manipulation(Variable) Loop End (ColumnAppend) String Manipulation(Variable) Variable toTable Row Create CollectionColumn Table Rowto Variable

Nodes

Extensions

Links