Defining Functions that Use Period Types | Teradata Vantage - Defining Functions that Use Period Types - Analytics Database - Teradata Vantage

SQL External Routine Programming

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
2023-07-11
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1147
lifecycle
latest
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).