Olá pessoal! > Tem como empregar o "case" no PostGre? Sim.
> Se afirmativo, como?! SELECT cod_dep, CASE cod_dep WHEN 10 THEN 'DEPARTAMENTO 10' WHEN 20 THEN 'DEPARTAMENTO 20' ELSE 'Outros' END Até logo! -- Arthur César Oreana aoreana (at) gmail (dot) com - Linux User #252814 http://www.postgresql.org/ - http://www.postgresql.org.br/ http://community.java.net/ - http://orlandiajug.dev.java.net/ http://jroller.com/page/aoreana/ - http://advogato.org/person/aoreana/ _______________________________________________ Grupo de Usuários do PostgreSQL no Brasil http://www.postgresql.org.br
