A 'select' statement produce some sequence of data output like 'SL' 'CL''PL' etc as shown in below picture

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'
Is there any way to implement this