SQL Query to find out similar names in two tables
549760Apr 13 2007 — edited Apr 14 2007Hi,
I want to write a query which will return the records by matching the two table with the similar name.
that is I have two tables table1 and table2, and in table1 the column1 is having data like
ABC INC
The international Company
and in the table2 has the column1 which has the data like
ABC Corp
The Financials Corporation
So as per the requirement now my select query should return 1 row as ABC INC and ABC Corp are similer.
and both the tables have around 50,000 reords so I cannot just take the first word by using substring and tryto match both, this will work only for names like ABC INC and ABC Corp but it will not return the names like
"Instruments International Company" and "International Instruments Company"
Please can any one help me?
Regards,
Chanda