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