Ive a big select case in SQL query.
(select case tb_usuario.int_id_cargo
when 13
then '20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53'
when 20
then ''
when 21
then '20'
when 22
then ''
when 23
then '22'
when 24
then '20,21,22,23'
when 25
then '20,21,22,23,24'
when 26
then '20,21,22,23,24,25'
when 27
then ''
when 28
then '27'
when 29
then ''
when 30
then '29'
when 31
then '27,28'
when 32
then '27,28,31'
when 33
then '29,30'
when 34
then '27,28,29,30,31,32,33'
when 35
then ''
else ''
end) as subs
If you pay attention you will realize there are many cases that return an empty string.I would like to check those that return empty string in a single case,i.e:
(select case tb_usuario.int_id_cargo
when 20,22,27,29,35
then ''
[...]
Is that possible?