Snowflake Vs MS-SQL - Part 84 - EXTRACT Day/Month/Year

           


EXTRACT Day/Month/Year

Sometimes you have to extract Day or Month, or Year from a Date.

MS-SQL Server 

We can achieve it as follows:



In Snowflake, we can use a similar approach; however, we can use EXTRACT as follows:




Note: You can use EXTRACT to convert the timestamp to its 
Unix epoch time 
representation as below:




For more details, refer to the EXTRACT section.


Yogesh Shinde

LinkedInProfile

<<< Back Next >>>

Comments

Popular posts from this blog

Snowflake Vs MS-SQL - Part 63 - ON Clause & Cross Join

Snowflake Vs MS-SQL - Part 70 - UNION By Name

Snowflake Vs MS-SQL - Part 68 - Multi Table Insert