Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: SOUNDEX in SQL-Select with like?

Re: SOUNDEX in SQL-Select with like?

From: Martin Haltmayer <Martin.Haltmayer_at_0800-einwahl.de>
Date: Mon, 07 Feb 2000 12:39:39 +0200
Message-ID: <389EA0EB.1757723@0800-einwahl.de>


You have to prepare a function word_soundex that returns the concatenated soundex values of the words that its argument consists of.

Then you can do

select empl_no, name from empl where word_soundex (name) = soundex ('meier')

Martin

Michael Buresch wrote:
>
> Hallo,
>
> 1.)
> when I say:
> SELECT EMPL_NO,NAME FROM EMPL WHERE NAME = 'MEIER'
> i get all records with name = MEIER -> O.K.
> 2.)
> when I say:
> SELECT EMPL_NO,NAME FROM EMPL WHERE SOUNDEX (NAME) = SOUNDEX ('MEIER')
> i get all records with name = MEIER, MAYR, MEUER, etc. -> O.K.
> 3.)
> when I say:
> SELECT EMPL_NO,NAME FROM EMPL WHERE NAME LIKE '%MEIER%'
> i get all records with name = MEIER, SCHULK & MEIER, etc. -> O.K.
> 4.)
> But how do I crete a SQL Select with SOUNDEX and like???????????????ß
>
> Best reagrds,
> Michael
Received on Mon Feb 07 2000 - 04:39:39 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US