ADD_MONTHS Rules - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905
ADD_MONTHS observes the following rules:
  • If either argument of ADD_MONTHS is NULL, then the result is NULL.
  • If the result is not in the range ‘0000-01-01’ to ‘9999-12-31’, then an error is reported.
  • Results of an ADD_MONTHS function that are not valid dates are normalized to make sure all reported dates are valid.