TIMESTAMP-to-TIME Conversion Example 3 - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

The following SELECT statement return an error because the source expression does not have a time zone displacement.

SELECT CAST(TIMESTAMP '2008-06-01 08:30:00'
   AS TIME(0) WITH TIME ZONE AT SOURCE);