Programmer's Corner Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Programmer's Corner - Forums


SOUNDEX

 
Post new topic   Reply to topic    Programmer's Corner Forum Index -> Microsoft SQL Server
Author Message
bdi
Nobody


Joined: 21 Oct 2004
Posts: 1646
Location: Chicago

PostPosted: Tue Mar 23, 2004 9:38 am    Post subject: SOUNDEX Reply with quote

Anyone used SOUNDEX in a production query before? I am working on methods to cleanup data for reporting, and was thinking this might be a good function for nailing a lot of typos. The theory is good, but does it really work? And is it fast enough to be useful in production?

I'll be running some tests, so I will probably be posting back.

Thanks


Programmer's Corner - tutorials, articles, forums, and code for C++, SQL, .NET, java, and, web development
Visual Basic Explorer - support forums and source code for all your Visual Basic 6 needs!
the drop ship guide - The complete guide on how to get started with wholesale drop shipping.

Back to top
bdi
Nobody


Joined: 21 Oct 2004
Posts: 1646
Location: Chicago

PostPosted: Tue Mar 23, 2004 3:38 pm    Post subject: Re: SOUNDEX Reply with quote

well, it appears that this function is fast enough. However, it is not accurate enough for this purpose.

From SQL Books Online:
Quote:
SOUNDEX converts an alpha string to a four-character code to find similar-sounding words or names. The first character of the code is the first character of character_expression and the second through fourth characters of the code are numbers. Vowels in character_expression are ignored unless they are the first letter of the string. String functions can be nested.

This would be great if I were creating a search engine which does not need to be exact. However, in the current situation two companies 'Ameritech' and 'Ameritrade' both have the same SOUNDEX code, and therefore would match. This will not work when creating a final report for a customer. It is to risky.

Anyway, it's a nice function. Well worth my 20 minutes playing with it.


Programmer's Corner - tutorials, articles, forums, and code for C++, SQL, .NET, java, and, web development
Visual Basic Explorer - support forums and source code for all your Visual Basic 6 needs!
the drop ship guide - The complete guide on how to get started with wholesale drop shipping.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Programmer's Corner Forum Index -> Microsoft SQL Server All times are GMT - 5 Hours
Page 1 of 1

 


Powered by phpBB © 2001, 2002 phpBB Group