Comments - CASE OPERATOR
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
Keep on mind that in complex CASE constructions the first matching WHEN is processed only.
So the CASE operator works as if-elseif-else construction, see following examples where each condition of WHEN compare_value is TRUE but only first is matched and its result is returned.
Thanks, clarified in the text.