I am trying to find an equivalent of DECODE function in MySQL. It works like this:
Select Name, DECODE(Age, 13,\'Thirteen\',14,\'Fourteen\',15,\'Fifte
You can use IF() where in Oracle you would have used DECODE().
IF()
DECODE()
mysql> select if(emp_id=1,'X','Y') as test, emp_id from emps;