Upper Function; Example Of Upper - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

UPPER Function

The UPPER function upshifts characters. UPPER can appear anywhere in a query where a value
can be used, such as in a select list, an ON clause, a WHERE clause, a HAVING clause, a LIKE
predicate, an expression, or as qualifying a new value in an UPDATE or INSERT statement. The
result returned by the UPPER function is equal to the result returned by the UPSHIFT or UCASE
function.
UPPER returns a string of fixed-length or variable-length character data, depending on the data
type of the input string.
UPPER (character-expression)
character-expression
is an SQL character value expression that specifies a string of characters to upshift. See
"Character Value Expressions" (page

Example of UPPER

Suppose that your CUSTOMER table includes an entry for Hotel Oregon. Select the column
CUSTNAME and return in uppercase and lowercase letters by using the UPPER and LOWER
functions:
SELECT custname,UPPER(custname),LOWER(custname)
FROM sales.customer;
(EXPR)
-----------------
...
Hotel Oregon
--- 17 row(s) selected.
See
"LOWER Function" (page
For examples of when to use the UPPER function, see
208).
(EXPR)
-------------------
...
HOTEL OREGON
354).
(EXPR)
------------------
...
hotel oregon
"UPSHIFT Function" (page
428).
UPPER Function
427

Advertisement

Table of Contents
loading

Table of Contents