Olá a todos, Supondo possuir a seguinte tabela (com alguns dados):
tabela id ano 1 2000 2 1998 3 2010 4 2012 Como selecionar o registro cujo ano mais antigo e seu respectivo id? Achei que fosse algo do tipo: select id, min(ano) from tabela Mas está incorreto. Gostaria de ajuda de vocês. Abraços, Vinícius.
_______________________________________________ pgbr-geral mailing list pgbr-geral@listas.postgresql.org.br https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral