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 - 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