Examples - Teradata Vantage - Analytics Database

SQL Data Types and Literals

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-11-06
dita:mapPath
uds1628112204571.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
exs1472253032394
lifecycle
latest
Product Category
Teradata Vantage™

Example: UPPERCASE Phrase

The Gender column is created using the UPPERCASE option.

Gender CHAR UPPERCASE

If Gender data is entered in lowercase as shown in the following INSERT statement, then it is stored and returned in uppercase.

INSERT INTO Employee (Name, EmpNo, Gender ...
 VALUES ('Smith', 10021, 'f', ...);
   
SELECT Gender
FROM Employee;

Result:

   Gender
   F

Example: UPPERCASE Phrase With the Concatenation Operator

If used with the concatenation (||) operator, UC must be enclosed in parentheses, and be placed immediately after the column name.

SELECT (City_name (UC)) || ', ' || State, Population
FROM World
WHERE Country = 'USA'
ORDER BY Population ;