Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Data Cleaning

Author  Topic 

neeraj1401
Starting Member

36 Posts

Posted - 2009-01-22 : 07:07:57
Hi,

I have to two tables, Customer data and City master. In city master there is field C_city, I have to clean the data of c_city, I'm mapping the city with city master. I'm facing the problem with cities having speliing mistake. is there any procedure which help me to clean the data.

Thanks in Advance.

raky
Aged Yak Warrior

767 Posts

Posted - 2009-01-22 : 07:26:11
quote:
Originally posted by neeraj1401

Hi,

I have to two tables, Customer data and City master. In city master there is field C_city, I have to clean the data of c_city, I'm mapping the city with city master. I'm facing the problem with cities having speliing mistake. is there any procedure which help me to clean the data.

Thanks in Advance.





Just add another column for temporary purpose and move the data in c_city to new column and update the data in c_city with null value and correct the data (spelling mistakes ) in new column and later on update the data in old column c_city with your new column
Go to Top of Page

neeraj1401
Starting Member

36 Posts

Posted - 2009-01-22 : 07:32:31
Thanks Raky.

I'm working with large data so mannal cleaning is litile difficult .
Is there any function like soundex ....

please sugessts

quote:
Originally posted by raky

quote:
Originally posted by neeraj1401

Hi,

I have to two tables, Customer data and City master. In city master there is field C_city, I have to clean the data of c_city, I'm mapping the city with city master. I'm facing the problem with cities having speliing mistake. is there any procedure which help me to clean the data.

Thanks in Advance.





Just add another column for temporary purpose and move the data in c_city to new column and update the data in c_city with null value and correct the data (spelling mistakes ) in new column and later on update the data in new column with your old column c_city...



Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2009-01-22 : 07:51:01
You can use either Soundex() or Difference(), but on large data set this will be really slow.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-22 : 12:09:45
or use blindmans fuzzy match algorithm:-

http://sqlblindman.googlepages.com/fuzzysearchalgorithm

Go to Top of Page

neeraj1401
Starting Member

36 Posts

Posted - 2009-01-23 : 01:30:50
Hi Unable to Open the link due to websence .....please suggest any other link ...........
http://sqlblindman.googlepages.com/fuzzysearchalgorithm

thanks in advance


Go to Top of Page
   

- Advertisement -