Example: Querying for the Month Beginning Immediately before the DATE or TIMESTAMP - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Publication Date
February 2025
Publication ID
B700-4600-008K
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
ft:sourceId
dita
dita:id
jbe1714339405530

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

SELECT TD_MONTH_BEGIN(DATE'2012-01-15');

Result:

2012/01/01