Snowflake Vs MS-SQL - Part 102 - Last Value in the Series

 


Last Value

Whenever we are sorting out the data and want to find the last value in the series.

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 LAST_VALUE as follows:




For more details, refer to the LAST_VALUE 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 Vs MS-SQL - Part 75 - String Length and Trimmed Length