Quantcast
Channel: KNIME RSS
Viewing all articles
Browse latest Browse all 4157

Strategies to find matching rows in a database

$
0
0

Hello all,

I am looking for ideas on how to tackle a problem using knime.

I have a table containing many rows of data where any of the fields can be NULL. For example:

NAMEAGECubicleCOMMENT1COMMENT2
John23 rhinocerous 
Alice371  
Tim562 Banana

I want to query an Oracle databse to see if each of these rows already exists in the database. For a row to exist, all fields must match. My initial thorugh was to use a "Table Row To Variable Loop Start" --> "Database Reader," however, the NULL/missing values don't work in this paradigm since:

  1.  "Table Row To Variable Loop Start" doesn't allow NULL values to be passed
  2. The SQL query used in the database requires me to use for "IS NULL" instead of "=" when comparing NULL values.

The only other way I can think to do this is to use a separate SQL query, each in its own "Database Reader" node, to indiviaually handle the different cases of possible NULL values. This is a bit unweildy since it would require dozens of separate database reader nodes.

I'm sure there is something simpler that is escaping my mind, so all suggestions are welcome.

Thank you.


Viewing all articles
Browse latest Browse all 4157

Trending Articles