SOUNDEX: Comparing Character Strings Phonetically

How to:

The SOUNDEX function analyzes a character string phonetically, without regard to spelling. It converts a source string to 4-character code. The first character must be the first character in the string. The last three characters represent the next three significant sounds in the source string.


Top of page

x
Syntax: How to Compare Character Strings Phonetically
SOUNDEX(length, source_string, output_format)

where:

length

Alphanumeric

Is the string whose numeric characters specify the number of characters in the source_string. It should be two characters long because the number must be from 1 to 99; a number greater than 99 causes the function to return asterisks (***).

source_string

Alphanumeric

Is the string to analyze.

output_format

Alphanumeric



Example: Comparing Character Strings Phonetically

SOUNDEX analyzes LAST_NAME phonetically and stores the result in a column with the format A4.

SOUNDEX('15', LAST_NAME, 'A4')

iWay Software