Snowflake Vs MS-SQL - Part 39 - EQUAL_NULL
MS-SQL Server
You can achieve this by using the ISNULL function.
In Snowflake we can use the similar function IFNULL.
However, Snowflake has another two approaches which give you the same result.
Function EQUAL_NULL
- EQUAL_NULL is a function, while IS [ NOT ] DISTINCT FROM is an operator.
- EQUAL_NULL is used as a function call, while IS [ NOT ] DISTINCT FROM is used as part of a SQL expression.
- EQUAL_NULL: A function to compare two values, treating NULL as equal.
- IS [ NOT ] DISTINCT FROM: An operator to compare two values, treating NULL as equal or distinct based on the context.
Comments
Post a Comment