Period Datatypes - Teradata Preprocessor2

Teradata® Preprocessor2 for Embedded SQL Programmer Guide

Product
Teradata Preprocessor2
Release Number
17.00
Published
June 2020
Language
English (United States)
Last Update
2020-06-19
dita:mapPath
whb1544831946911.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
B035-2446
lifecycle
previous
Product Category
Teradata Tools and Utilities

PP2 supports period datatypes. A period datatype is a datatype with two values that represent the start and end of a duration of time. The value that designates the beginning of the time period is included in the time span. The value that designates the end of the time period is not included in the time span. For example, a time period from February 1, 2006 to February 10, 2006 is nine days. The period includes February 1, 2006 and extends to, but does not include, February 10, 2006.

For more information, see Teradata Vantage™ - SQL Stored Procedures and Embedded SQL , B035-1148 .

Any of these period datatypes can be used to insert data into, or retrieve data from, the database (for example, using INSERT or SELECT). The values returned from the database server (for example, using SELECT) are in the format described in the next sections.