Sql-servers


2 Ways To Write IF THEN ELSE In SQL SELECT Query In SQL Server

In SQL server, To write if then else in SQL select query we can use SELECT CASE statement (In all versions), SELECT IIF logical function (From SQL server 2012)