How the Collation Sequence Sorts Characters

The database collation sequence includes alphabetic ordering of letters, which extends to all characters in the character set, including digits and space characters.

More than one character can be associated with each sort position. This is useful, for example, to treat an accented character the same as the character without an accent.

Two characters with the same sort position are considered by the database to be identical in all ways. Therefore, if a collation assigned the characters 'a' and 'e' to the same sort position, then this query:

WHERE col1 = 'want'

is satisfied by a row for which col1 contains the entry went.

At each sort position, lowercase and uppercase forms of a character can be indicated. For case-sensitive databases (the default for SAP Sybase IQ databases), lowercase and uppercase characters are not treated as equivalent. For case-insensitive databases, lowercase and uppercase versions of the same character are considered equivalent.

Note: Any code that selects a default collation for a German system should select 1252LATIN1, not 1252DEU. 1252DEU differentiates between characters with and without an umlaut, while 1252LATIN1 does not. 1252LATIN1 considers Muller and Müller equal, but 1252DEU does not consider them equal. Because 1252DEU views characters with umlauts as separate characters, it uses this alphabetic ordering: ob, öa.