I know that SQL\'s CASE syntax is as follows:
CASE
CASE WHEN search_condition THEN statement_list [WHEN search_condition THEN statement_list]
I wanted a simple example of the use of case that I could play with, this doesn't even need a table. This returns odd or even depending whether seconds is odd or even
SELECT CASE MOD(SECOND(NOW()),2) WHEN 0 THEN 'odd' WHEN 1 THEN 'even' END;