I want to preface this by saying I am new to SQL. I have been tasked with trying to find the fuzzy match score of two columns. This will help my team discover which data is still relevant and which data is outdated (as the fuzzy match will not return a high score since the data is not in the second column).
Now for the problem. I have two tables. Let's call them Table_A and Table_B. Table_A has a column called combo_field that looks like this.
combo_field |
---|
test1 |
example2 |
field3 |
Table_B has a similar column named combo, which looks like this.
combo |
---|
EXAMPLE3 |
TEST1 |
FIELD2 |
I want my output to look something like this.
fuzzy match score | combo_field | combo |
---|---|---|
.1 | test1 | TEST1 |
.2 | example2 | EXAMPLE2 |
.1 | field3 | FIELD3 |
Is it possible to both sort the combo_field and combo columns so that the values are lined up correctly, and then also return a fuzzy match score? I'm not sure if this can be done together, if it will take two steps to solve, or if it can be done at all. Any guidance would be much appreciated.
EDIT:
I brought the two combo fields I had in SQL server to Microsoft Excel. I downloaded fuzzy match through Microsoft Excel to match my two columns up and generate a fuzzy match score. It both sorted the columns to line up similar rows and it gave me a fuzzy match score between 1 and 0.