Re: Help con Select

From: Arcel Labrada Batista <alabradab(at)uci(dot)cu>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: Alejandra Bautista <alejandrabaut(at)gmail(dot)com>, Postgresql <pgsql-es-ayuda(at)postgresql(dot)org>, Giorgio <giorgio(dot)pgsql(at)gmail(dot)com>
Subject: Re: Help con Select
Date: 2011-07-06 12:02:25
Message-ID: 800813141.1099271309953745333.JavaMail.root@ucimail1.uci.cu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

cierto, no me mire bien que el codigo tambien se puede agrupar, gracias Alvaro

----- Mensaje original -----
De: "Alvaro Herrera" <alvherre(at)alvh(dot)no-ip(dot)org>
Para: "Arcel Labrada Batista" <alabradab(at)uci(dot)cu>
CC: "Alejandra Bautista" <alejandrabaut(at)gmail(dot)com>, "Postgresql" <pgsql-es-ayuda(at)postgresql(dot)org>, "Giorgio" <giorgio(dot)pgsql(at)gmail(dot)com>
Enviados: Martes, 5 de Julio 2011 16:58:14 GMT -05:00 Región oriental EE. UU./Canadá
Asunto: Re: [pgsql-es-ayuda] Help con Select

Excerpts from Arcel Labrada Batista's message of mar jul 05 16:43:30 -0400 2011:
> si agrupas por codigo no te va a funcionar, pues el codigo siempre es distinto, creo que no deberias incluirlo en el select no el el group by

Todo lo contrario ... mira la descripción del problema:

> Hola amigos espero me puedan ayudar, tengo una tabla socio mas o menos así:
>
>
>
>
> codigo..version.._modular............nombre
> 00001 01 7000000483 ALARCON ORTIZ SILVIA ESDENKA
> 00001 02 7000000483 ALARCON ORTIZ SILVIA ESDENKA
> 00002 01 1031125501 ALBINAGORTA REYNOSO HERLINDA ISABEL
> 00003 01 8000000872 ALFARO AGUERO PABLO RENE
> 00004 01 1031148858 ALTAMIRANO VARGAS AUGUSTO
> 00004 02 1031148858 ALTAMIRANO VARGAS AUGUSTO
> 00004 03 1031148858 ALTAMIRANO VARGAS AUGUSTO
> 00005 01 1031152138 ALTAMIRANO VARGAS ELIAS
> 00006 01 1031125811 ALTAMIRANO VIVANCO LUISA
> 00006 02 1031125811 ALTAMIRANO VIVANCO LUISA
> 00006 03 1031125811 ALTAMIRANO VIVANCO LUISA
> 00006 04 1031125811 ALTAMIRANO VIVANCO LUISA

--
Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message felix gonzales 2011-07-06 13:09:21 Re: procesos ocupan el total de la RAM
Previous Message Eduardo Morras 2011-07-05 21:43:32 Re: Restauración pg_dump