title: Conditional Statements in PostgreSQL
body: <p>A 'select' statement produce some sequence of data output like 'SL' 'CL''PL' etc as shown in below picture
  <a href="https://i.stack.imgur.com/tjDaY.jpg" rel="nofollow"><img src="https://i.stack.imgur.com/tjDaY.jpg" alt="enter image description here"></a></p>
  
  <p>If the data output is SL then it should be converted and displayed as 'Z', if its 'CL' the 'Q', if its 'PL' then 'R'</p>
  
  <p>Is there any way to implement this</p>