Sql execute

How a if else condition can be executed/written in a SQL execute snap? Like
do 1
do 2

Hello @munish
If else condition can be written in SQL execute snap with CASE statement. Example bellow:

Select EmployeeName,Salary
WHEN Salary > 70000 AND Salary < 100000 THEN ‘Senior’
WHEN Salary < 70000 THEN ‘Junior’
ELSE ‘Executive’
END as Position
from EmployeesTable

1 Like