14.0k views
4 votes
When the Select Case statement includes a Case ____ clause, this clause must be the last clause in the statement.

A) Otherwise
B) Else
C) Next
D) Last

User Blivet
by
6.4k points

1 Answer

4 votes

Answer:

Option B: Else

Step-by-step explanation:

In SQL Select Case statement, Else is the final clause in the statement. There are multiple conditions, the Case statements will go through each of the condition one after another and check if any one of the conditions is met and return a corresponding result.

If the first condition is met, it will return a value specified for the first condition. If not, the second condition and the following conditions will be checked until one of them is met and return the result. If all the conditions are not met, it will return the result in Else clause.

User Jazzbpn
by
5.7k points