16.20.16.20 - 16.20 - Example: Least Significant Field in Source Lower Than Target - 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 converts ‘3-11’ to ‘3’. Source is INTERVAL YEAR(2). The truncation completes the conversion.

SELECT CAST(INTERVAL '3-11' YEAR TO MONTH AS INTERVAL YEAR(2));