Snowflake Vs MS-SQL - Part 32 - Else IF

     


Else IF

Many times you have to compare the equation and then make the decision.

Suppose the value is greater than 100 then it should print "The number is large". if it is less than 10 then it should print "The number is small" and for all the remaining it should print "The number is medium".



MS-SQL Server 

You can achieve this by using the IF ELSE statement. 



In Snowflakewe can use a similar IF Else but it has a variant ELSEIF as below. 



For more details, you can refer to the following ELSEIF




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