SELECT (
 CASE  
   WHEN t.status_id = 13 THEN 1
   WHEN t.status_id = 14 THEN 2 
 END)
FROM tea t WHERE t.id =13
Above query is working. But what I need is to return a string instead of number.
SELECT (
 CASE  
   WHEN t.status_id = 13 THEN CLOSE
   WHEN t.status_id = 14 THEN OPEN
 END)
FROM tea t WHERE t.id =13
 
     
     
    