SOUNDS Predicate (sounds_predicate)
A SOUNDS
predicate (sounds_predicate
) is used to perform a phonetic
comparison.
Specifying LIKE
in the SOUNDS
predicate
has no effect. The values in the expressions (expression
)
must be alphanumeric (code
attribute ASCII
).
A phonetic comparison between values is carried out according to
the SOUNDEX
algorithm. First, all vowels and
some consonants are eliminated, then all consonants which are similar in sound
are mapped to each other.
x, y |
Result of the Predicate |
|---|---|
|
|
|
|
|
|
x NOT SOUNDS y
has the same result
as NOT (x SOUNDS y)
.
SOUNDEX(x) string function