Snowflake Vs MS-SQL - Part 66 - IS DISTINCT FROM

         



IS DISTINCT FROM

In some cases, we need to get the records that are NOT mapping as below:



And you are expecting the result as below:



MS-SQL Server 

We can achieve this by using INNER JOIN as below:


However, in Snowflake, this can be achieved in the same way as above; however, you can use the IS DISTINCT FROM command as below: 




For more details, you can refer to the following: IS DISTINCT FROM.


     

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