I have a table that needs to be cleaned. I need to figure out a way pragmatically. I think this type issue is common and maybe someone has a solution or suggestion for it.
Basically the issues is, I have an employer table. It contains employer's name and address. The issue is that the employer's name is spelled several different ways for same employer. For example McDonalds is spelled like Mc Donalds, McDdonalds, The McDonalds, MacDonalds.
I need to figure out a way to have one correct common name for employer's that has same address. Basically the table needs to be cleaned. Is this possible to do pragmatically in a SQL script. It is stored in a SQL Server 2008 databse.
quote:I need to figure out a way to have one correct common name for employer's that has same address.
If what you said about duplicates having the SAME ADDRESS, then you can group by the address and find which ones have dups. However, I highly doubt whether you have precise addresses when the employer's name was entered with such wanton abandon!
Yep the addresses are even worst. This table is horrible. So, i may need ask one of the PMs to clean this table in a excel file and then i imported back into the db. But if there are any other idea please give suggestions.