isoweek

BigQueryDb2 (LUW)MariaDBMySQLOracle DBPostgreSQLSQL ServerSQLite2005200720092011201320152017201920213.5.7 - 3.41.02017 - 20222008R28.3 - 1511gR1 - 21c5.0 - 8.0.325.1 - 10.119.7 - 11.5.82.0b2.0a
  1. ISO 8601 week date (year’s first Thursday)
  2. Use extract(isoyear) for the corresponding year