Snowflake Vs MS-SQL - Part 111 - Extract a Year from the DATE


Extract a Year from the DATE

Sometimes, we need to extract the year component from a given date.

MS-SQL Server

We can achieve it as follows:



In Snowflake, we use EXTRACT as follows:




For more details, refer to the EXTRACT section.


Comments

Popular posts from this blog

Snowflake Vs MS-SQL - Series

Snowflake Key Concepts

Snowflake Vs MS-SQL - Part 46 - RATIO_TO_REPORT