Snowflake Vs MS-SQL - Part 62 - Derived Column

        



Derived Column

Sometimes, you use two columns to derive values from them, and you need to filter the data based on this derived value.


MS-SQL Server 

We can achieve this by an additional level of SELECT as below:



However, Snowflake allows you to use a derived column in the WHERE clause as below:






  

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