Skip to main content
Solved

Comparison of two columns for matches in One Desktop

  • February 27, 2023
  • 1 reply
  • 112 views

Forum|alt.badge.img+1

Hello everyone!

I have an interesting task related to the desktop, we have a table combined with certain attributes and with full names, full names are divided into columns (firstname, lastname, midname) and they need to be compared with other columns (firstname1, lastname1, midname1) it is necessary to output non-matching full names. I can't compare one table between columns, I need your help. Do you know how to implement this?

I will be very grateful for your help

Best answer by AKislyakov

HI

For this task I advise you to use the Filter step.

You can use either some straightforward conditions, like 

lastname is not lastname1 //is not used to cover null
or midname is not midname1
or firstname is not firstname1

Or you can apply some matching functions to do a fuzzy matching.

editDistance(lastname, lastname1) + editDistance(firstname, firstname1) + editDistance(middlename, middlename1) >= 2

//Checks that there is at least 2 changed symbols between the names

 

View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+2
  • Ataccamer
  • 147 replies
  • Answer
  • February 27, 2023

HI

For this task I advise you to use the Filter step.

You can use either some straightforward conditions, like 

lastname is not lastname1 //is not used to cover null
or midname is not midname1
or firstname is not firstname1

Or you can apply some matching functions to do a fuzzy matching.

editDistance(lastname, lastname1) + editDistance(firstname, firstname1) + editDistance(middlename, middlename1) >= 2

//Checks that there is at least 2 changed symbols between the names

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings