Snowflake Vs MS-SQL - Part 38 - IFNULL

       


IFNULL/NVL

Your data may often contain a NULL value and you need to display or replace it with some other value. As below, for NULL we are replacing it by Default.



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 function NVL which gives you the same result.



For more details, you can refer to the following NVL or IFNULL.




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