November 15, 2008 at 2:49 am
hi,
I want to find common sounding similarity words in database.
ex. I want to find "Limited" word in database.
the following words are allready present in database-
Ltd., Limited, Leemited, Limeeted, Limitted ect
SO, These words are common sounding like Limited.
When i execute the querry i want all these words.
So how can I find it without using " like " ?
Thanks & Regards.
November 15, 2008 at 8:06 am
May I suggest that you read the topics in Books On Line (BOL) titled Full-Text Search... be prepared there is a lot to read, but you should be able to answer your question. In addition search SQL ServerCentral for example here is a good starting article:
http://www.sqlservercentral.com/articles/Full-Text+Search+(2008)/64248/
November 16, 2008 at 2:44 pm
Hi,
I would suggest using functions like soundex and difference.
Here is an example:
create table #temporaryNames ( names varchar(128) null)
insert #temporaryNames
select 'Ltd.'
union select 'Limited'
union select 'Leemited'
union select 'Limeeted'
union select 'Limitted'
union select 'Lighthouse'
union select 'Lift'
union select 'Likelihood'
select names from #temporaryNames where difference(names, 'limited')=4
In this example, 4 is the lowest possible difference. You could lower the threshold (E.g. >=3) if required.
B
November 16, 2008 at 9:38 pm
November 17, 2008 at 4:42 pm
Full text is probably the way to go, but a soundex (in-built function) my be of some use to you.
Carlton..
November 18, 2008 at 6:02 pm
agree, take a look at soundex and full text search. Both have some value and may match your needs.
The more you are prepared, the less you need it.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply