It would be helpful and more well understood to add CASE ELSE option to this command, thus the command syntax will be something like this:

SELECT
CASE expression
statement1
....
CASE expression
statement2
....
CASE ELSE
statement3
....
ENDSELECT

Tan