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