What?
This article is for demonstrating how to use a SOUNDEX in a select and then listing all the variations based on case-sensitivity.
Why?
We have a database with data in it. For a particular ...
... priority to articles where the search term is in the article title.
In the stages thereafter, I'm going to simply enhance the relevance factor:
Soundex: Built-in function to list matches that sound ...
... You can put a distinct on it (not forgetting the collate).
This example is expanded in a further article called "Search a database with soundex":
/* USING A CURSOR */
DECLARE @SqlToExecute nvarchar(max);
DECLARE ...
... Note: for some systems you can do a levenshtein on two words soundex value and compare these.
// Be warned that it does go off track though in terms of relevance...
Sources:
iamcal.com
Nadeau ...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.