Example: Converting Numeric Data to an INTERVAL Value - Teradata Vantage NewSQL Engine - 16.20

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 '   -5' (with three leading pad characters).

SELECT CAST(-5 AS INTERVAL YEAR(4));