Click here to Skip to main content
16,014,392 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have 2 tables/DataSets and it has different fields like Name, Age, Gender,Address. I want to run a match on the address column. I want a program which fetches only the matched addresses between the two tables. The problem here is that the same address can be entered in multiple ways
For Example
Table 1 Contains
114 Mary Street

Table 2 Contains
114 Mary St
114 Mary St.

The above sample records are same but they will be considered different when matched through a query. It requires some algo as a same address can be written in 1000 different ways and a same address can also contain typos.

I have searched a lot regarding the possible solution, many have recommended fuzzy search algorithm but i am not sure where and how to start.
I am looking for ideas for an effective algorithm. Any idea can be pseudo code or in your preferred language.
Any help would be highly appreciated.

Thanks

What I have tried:

I have searched regarding this at different places but still no luck many have recommended Fuzzy search algorithm i am not sure where and how to start.
The data is available in 2 tables and it has many records so it will be quite helpful if i can get a program that brings me similar or approximate same records.

Thanks.
Posted
Updated 4-Aug-16 3:03am
Comments
Daniel Jones 5-Aug-16 1:46am    
take a look at this link hope: https://documentation.play-sql.com/display/SQL/Matching+records+from+two+tables+-+the+JOIN

1 solution

Few years ago i asked similar question[^]. There you'll find 2 answers. Please read them and read all comments.
 
Share this answer
 
Comments
Karthik_Mahalingam 4-Aug-16 22:40pm    
5! good memory :)
Maciej Los 5-Aug-16 1:53am    
Thank you, Karthik

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900