› Fóruns › SQL e PL/SQL › ORDER BY › ORDER BY
25 de outubro de 2011 às 2:49 pm
#101359
Participante
decode neles.
ORDER BY decode(TO_CHAR(e.datcad,'DAY'), 'SEGUNDA-FEIRA', 'a', 'TERÇA-FEIRA', 'b', 'QUARTA-FEIRA', 'c','z')
› Fóruns › SQL e PL/SQL › ORDER BY › ORDER BY
decode neles.
ORDER BY decode(TO_CHAR(e.datcad,'DAY'), 'SEGUNDA-FEIRA', 'a', 'TERÇA-FEIRA', 'b', 'QUARTA-FEIRA', 'c','z')