Can I make a query
using 1 case
for multiple fields? The fields are of type int
.
If not, can I do it in php?
Query
select *,
(case (pergunta1,pergunta2)
when 1 then 'Ótimo'
when 2 then 'Bom'
when 3 then 'Regular'
when 4 then 'Ruim'
END) as pergunta1,pergunta2 from tabela