Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » SQL Anywhere Server - SQL Usage » Querying and Modifying Data » Querying data » The WHERE clause: Specifying rows


Matching rows by sound

With the SOUNDEX function, you can match rows by sound. For example, suppose a phone message was left for a name that sounded like "Ms. Brown". You could execute the following query to search for employees that have names that sound like Brown.

List employees with a last name that sound like Brown

  • In Interactive SQL, execute the following query:

    SELECT Surname, GivenName
       FROM Employees
       WHERE SOUNDEX( Surname ) = SOUNDEX( 'Brown' );
    Surname GivenName
    Braun Jane

The algorithm used by SOUNDEX makes it useful mainly for English-language databases. See SOUNDEX function [String].