Switch Case In SQL

Introduction
The case statement in SQL returns a value on a specified condition.
We can use a Case statement in select queries along with Where, Order By, and Group By clauses.
It can be used in the Insert statement as well. In this article, we would explore the CASE statement and its various use cases.
Syntax Of Switch Case
CASE
WHEN condition1 THEN result1
WHEN condition2 THEN result2
WHEN conditionN THEN resultN
ELSE result
END;