I'm trying to make an order by the result of sql:
sql....
order by cod_rua,
case cod_lado
when 'M' then cod_lado desc
else cod_lado ASC
end, cod_altura
Only you are giving error in desc.
Staff did not work:
order by
r.cod...
asked by
04.05.2017 / 19:18