My tables are these :
Employee Table:
+-----------+----------+------------+ | id | name | department | +-----------+----------+-----------
SELECT replace(replace(department,'1','CS'),'2','IT') as dept from Employee