Uma opção sem criar estruturas adicionais seria:
select *
from <tabela>
order by case value
when '1º Aval' then 0
when '2º Aval' then 1
.........
when '1º Trim' then x
end;-- *Marcone Peres - DBA* http://www.linkedin.com/in/marconeperes *(61) 8146-0028*
_______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
