Example: Querying the Tuesday before a DATE or TIMESTAMP - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530

In the following SQL statement, the calendar defaults to the session calendar, TERADATA.

SELECT TD_TUESDAY(TIMESTAMP'2012-05-08 10:00:00');

Result:

2012-05-08 00:00:00