Snowflake Vs MS-SQL - Part 83 - Compare NULL - IS NOT DISTINCT FROM

           


Compare NULL - IS NOT DISTINCT FROM

Sometimes you have to compare with NULL in the WHERE clause.

MS-SQL Server 

We can achieve it as below:




In Snowflake, we can use a similar approach; however, we can use IS NOT DISTINCT FROM as below:





For more details, refer to the IS_NOT_DISTINCT_FROM section.


 

Comments

Popular posts from this blog

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

Snowflake Vs MS-SQL - Part 70 - UNION By Name

Snowflake Vs MS-SQL - Part 68 - Multi Table Insert