Is there an ANSI SQL equivalent to Oracle\'s DECODE function?
Oracle\'s decode function is the IF-THEN-ELSE construct in SQL.
CASE WHEN a=1 THEN value1 WHEN a=2 THEN value2 ELSE default END
SQL Case Statement Syntax?