In Snowflake, instead of IFNULL, the NVL function can be used. NVL and IFNULL are aliases: SET val=NULL; SELECT NVL($val, 0) as VAL; COALESCE SQL Server and Snowflake both support the COALESCE function. This function returns the value of its first non-NULL argument. If all arguments...