Snowflake Vs MS-SQL - Part 26 - QUALIFY

   


QUALIFY

You might be using the Windows function for different purposes and need to filter this result.

MS-SQL Server 

If you want to filter in this situation then you need to use an outer query to filter it out.



In Snowflakewe can use a similar code as above or we can make use of QUALIFY to avoid an additional outer query.


Also, you can use the Windows function to Qualify as below.




For more details, you can refer to the following QUALIFY.




   

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