SOUNDEX
Reference material for SOUNDEX function
Returns the Soundex code for a string. Soundex is a phonetic algorithm that indexes names by sound, as pronounced in English. The algorithm produces a four-character code consisting of a letter followed by three digits.
Non-alphabetic characters are ignored when generating the Soundex code. If the input string contains no alphabetic characters, SOUNDEX returns an empty string.
Syntax
Parameters
Parameter | Description | Supported input types |
---|---|---|
<expression> | The string for which to generate the Soundex code. | TEXT |
Return Type
TEXT
Example
The following example generates Soundex codes for different variations of a name:
Returns: S530
, S530
, S530
The following example shows the behavior with strings containing no alphabetic characters:
Returns: ,
, “