WEEK
Syntax
WEEK( value )
Description
The number of the week according to ISO 8601
Argument types:
value
—Date | Datetime
Return type: Integer
Example
WEEK(#1971-01-14 01:02:03#) = 2
Data source support
ClickHouse 21.8
, Files
, Google Sheets
, Microsoft SQL Server 2017 (14.0)
, MySQL 5.7
, Oracle Database 12c (12.1)
, PostgreSQL 9.3
, Yandex Documents
, YDB
.