Snowflake Vs MS-SQL - Part 95 - Date and Time - INTERVAL


Date and Time - INTERVAL

Often, you need to add a duration/interval to an existing date.

MS-SQL Server

We can achieve it as follows:



In Snowflake we can use a similar approach as above; however, we can make use of the new data type INTERVAL as follows:




For more details, refer to the INTERVAL section.

Comments

Popular posts from this blog

Snowflake Vs MS-SQL - Series

Snowflake Vs MS-SQL - Part 79 - Adding a comment to the Column of a Table

Snowflake Key Concepts