I have table like Which has column A & B
A B
1 9
1 8
2 7
2 5
I want to write query.
Select case when B = 9 then A = 'X', when A = 2 then 'Y' end as A
Is it possible in SQL. Please guide me