The LOWER function converts uppercase letters to lowercase for display purposes. This is the inverse of the UPPER function. LOWER has no effects on non-alphabetic characters. It leave unchanged punctuation, numbers, and leading and trailing blank spaces.
LOWER does not force a numeric to be interpreted as a string. InterSystems SQL converts numerics to canonical form, removing leading and trailing zeros. A numeric specified as a string is not converted to canonical form, and retains leading and trailing zeros.
The LCASE function can also be used convert uppercase letters to lowercase.
LOWER has no effect on collation. The %SQLUPPER function is the preferred way in SQL to convert a data value for not case-sensitive collation. Refer to %SQLUPPER for further information on case transformation for collation.
The following example returns each person’s name in lowercase letters:
SELECT Name,LOWER(Name) AS LowName
LOWER also works on Unicode (non-ASCII) alphabetic characters, as shown in the following example, which converts Greek letters from uppercase to lowercase: