Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Matching 2 columns from 1 table...fuzzy match an option?

$
0
0

Hi, I posted a week or so ago about trying to match up customer search terms with product names.  Using CONTAINS I am matching a decent amount of these, but I'd like to catch even more. I've been looking into fuzzy match, but I'm not sure how to use it for what I want.

 

Here's an example of what I'm talking about:

idsearch termproduct namematch
1adviladvil gel 100yes
2advladvil gel 100no
3advil gel 10advil gel 100no

 

For the purpose of what I'm doing I would like all of those to be considered a match.  Contains only counts the first one as a match since the term 'advil' is part of the product name. 

 

When i read up on fuzzy match I can't find an example that compares 2 columns in the same table.  I'm guessing I need to maybe union the table to itself and give each row a unique identifier and then somehow try and match the 2 columns from there?  But I haven't been able to get anything like that to work either. 

 

Help!


Viewing all articles
Browse latest Browse all 4999

Trending Articles