Is it ok to check for SQL returning a Soundex of 0000 based on the assumption that it isn’t a valid word, e.g. has digits, spaces, special characters or is there a better way to do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t think soundex is good for that, I think the SOUNDEX() function will omit the digits, spaces and symbol, for example:
Both give you the same result.
Besides SOUNDEX() has some limitation in the way it works.
You can take a look at the Levenshtein distance, it determines the number of operations you have to do to make one string exactly like another. You can find an implementation here.
HTH