Defining Functions that Use Period Types | Teradata Vantage - Defining Functions that Use Period Types - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
rin1593638965306.ditamap
dita:ditavalPath
rin1593638965306.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantageā„¢

A period is an anchored duration that represents a set of contiguous time granules. It has a beginning bound (defined by the value of a beginning element) and an ending bound (defined by the value of an ending element). The representation of the period extends from the beginning bound up to but not including the ending bound.

Teradata supports the following Period data types:
  • PERIOD(DATE)
  • PERIOD(TIME)
  • PERIOD(TIMESTAMP)

PERIOD(TIME) and PERIOD(TIMESTAMP) can be specified with optional fractional seconds, for example PERIOD(TIME(6)), and optional time zone, for example PERIOD(TIMESTAMP WITH TIME ZONE).