Period Datatypes - Teradata Preprocessor2

Teradata® Preprocessor2 for Embedded SQL Programmer Guide - 20.00

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Teradata Preprocessor2
Release Number
20.00
Published
October 2023
ft:locale
en-US
ft:lastEdition
2023-11-20
dita:mapPath
nyr1691484085721.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
xfi1470440464166
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.