td_week_of_calendar | SQL Date/Time Functions & Expressions | Teradata Vantage - td_week_of_calendar - Teradata Vantage - Analytics Database

SQL Date and Time Functions and Expressions

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2023-10-30
dita:mapPath
cpk1628111786971.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
pxz1544241488545
lifecycle
latest
Product Category
Teradata Vantageā„¢

Returns the number of weeks from the beginning of the calendar starting on 01/01/1900 to the specified date.

The td_week_of_calendar function provides improved performance compared to using the Sys_Calendar.Calendar system view to obtain similar results.

ANSI Compliance

This statement is a Teradata extension to the ANSI SQL:2011 standard.

Result Type

The result is an INTEGER value representing the number of full weeks since and including the week of 01/01/1900, where the first partial week is 0.