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 - Part 36 - SPLIT_TO_TABLE

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

Snowflake Vs MS-SQL - Part 33 - INITCAP