There are times when you want to perform conditional checks within a SQL Query in SQL Server .
Below is a sample Query that demonstrates how to do it.
Assume that the Employee table contains a column called “Designation” and we might want to show a value 1 if the designation is SSE else show 0 . You can do it with the below query.