Example: Querying for Beginning of the Week and the Week Number - 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

This query returns the beginning of the week and the week number for 2009, assuming that no calendar is set for the session. The session uses the default business calendar “Teradata.”

SEL WeekBegin, week_of_year FROM Sys_Calendar.BusinessCalendar WHERE calendar_date = DATE '2009-03-15'; 
Week_begin         week_of_year
-----------        -------------------
2009/03/15           11