16.20.16.20 - 16.20 - Example: Querying with CAST - Teradata Vantage NewSQL Engine

Teradata Vantageā„¢ Data Types and Literals

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1143-162K

The following query returns ' -265-11'.

SELECT CAST('-265-11' AS INTERVAL YEAR(4) TO MONTH);