16.20 - 例: SELECT WEEK - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL日付と時刻の関数および式

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
プログラミング リファレンス
featnum
B035-1211-162K-JPN

SELECT WEEKの使用例:

select week(date);
select week(current_date);
select week(date '1900-01-01');
select week(date '1899-12-31');
select week(date '1700-05-31');
select week(date - interval '300' year);
select week(date - interval '6' month);
select week(date - interval '150' day);