SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Accepting fuzzy lookup changes into actual dataset


Accepting fuzzy lookup changes into actual dataset

Author
Message
rsteckly
rsteckly
SSC-Enthusiastic
SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)

Group: General Forum Members
Points: 120 Visits: 62
Hi,

I have 802K records in a dataset and a reference table. I have two fields: schoolcode and schoolname. I have a reference table with schoolcode and schoolname in it with some other data I need in my original table.

The trouble is, they just don't match up exactly in all cases. Some of the differences are predictable while others aren't.

I ran fuzzy lookup and sent the results to another table to look at how they match up.

There doesn't appear to be a similarity threshold that would automatically just get me the dataset with the automatic matches.

I created a view with all of the distinct code and name matches. I'd like to add a column such as 'isAccpeted' or something like that. This way, I can look over each distinct match and put a 1 for the ones I want and a 0 for the one's I don't.

What I'm not sure about, however, is how to send those changes BACK to the original table. Because my intermediate view only shows distinct values, I would only be marking each match, not each row.

What kind of thing would I need to do to send those changes back to the original table? I've thought of perhaps using the Merge task or maybe the Join task. Any ideas?

Thanks,

Ron
albertarun
albertarun
SSC Rookie
SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)

Group: General Forum Members
Points: 47 Visits: 121
I worked on some of the large scale fuzzy matching projects. Based on my experience you are in the right track.

You already have a table to which you load your fuzzy results. Add a derived column named IsMatchFlg and default the value to 0. Once you finish loading the data into the table run a SQL script to flag you aceptable record as IsMatchFlg=1.
This flag should be applied to 1 record per batch which is the record having maximum similarity score.

Then a select from this table where IsMatchFlg=1 will give your matching records.

I guess this helped. Let me know
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search