Example: Converting numeric_value into an INTERVAL YEAR(40) TO MONTH Value

Teradata Vantageā„¢ Data Types and Literals

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

The following query:

SELECT NUMTOYMINTERVAL(40, 'YEAR'); 

returns the result '40-00', which is 40 years, 0 months.