System-Defined Calendars - Analytics Database - Teradata Vantage

SQL Data Definition Language Detailed Topics

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-10-04
dita:mapPath
vuk1628111288877.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
jbg1472252759029
lifecycle
latest
Product Category
Teradata Vantage™

Vantage maintains several system-defined calendars in user DBC that you can use for a session. The supported calendars are based on the Gregorian calendar and have 365 days for normal years or 366 days for leap years.

The system-defined calendars have the following names and definitions.
  • Teradata

    All business calendar UDFs consider the CalendarPeriod for the Teradata calendar to be 1900-01-01 to 2100-12-31 and return an error message for any dates that are outside of this period.

    The EXPAND ON clause returns results for any dates whether or not they are outside of the system calendar period.

    This is the default calendar for all sessions.

  • ISO

    This calendar has the behavior of the ISO Calendar/European Calendar, with Monday as the WeekStart for any week.

    All business calendar UDFS consider the CalendarPeriod to be 1900-01-01 to 2100-12-31, but not 0001-01-01 to 9999-12-31, and return an error message for any dates that are outside of this period.

    The EXPAND ON clause returns results for any date whether they are outside the system calendar period or not.

  • COMPATIBLE

    The first week of every year for this calendar is January 1 to January 7.

    All the business calendar UDFs consider the CalendarPeriod to be 1900-01-01 to 2100-12-31, and return an error message for any dates that are outside of this period.

    The EXPAND ON clause returns results for any date whether they are outside the system calendar period or not.

See Teradata Vantage™ - SQL Date and Time Functions and Expressions, B035-1211 for complete documentation of these calendars.