select case when qz.quiz_enabled
then 'yes'
else 'no'
end
или
select if(qz.quiz_enabled, 'yes', 'no')
select case when qz.quiz_enabled
then 'yes'
else 'no'
end
или
select if(qz.quiz_enabled, 'yes', 'no')