Skip site navigation (1) Skip section navigation (2)

Re: Left Join

From: Alfredo Rico <alfredorico(at)gmail(dot)com>
To: Lista PostgreSql <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Left Join
Date: 2010-06-10 14:24:22
Message-ID: AANLkTinbwJkN-34PVP_lLGtQOT69nJ_qZfbE2bKMVxSS@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-es-ayuda
> select vendedor.nombre, count (ventas.id_documento)
> from vendedor left join ventas on (vendedor.id_vendedor =
> ventas.id_vendedor and
>                                                   ventas.fecha
> between '20100101' and '20100531')
> group by 1
>


Jaime ¿por que el "group by 1" ?



-- 
Saludos Cordiales.-
Alfredo Rico.
San Cristóbal - Venezuela.

In response to

Responses

pgsql-es-ayuda by date

Next:From: Jaime CasanovaDate: 2010-06-10 14:36:01
Subject: Re: Left Join
Previous:From: Alfredo RicoDate: 2010-06-10 12:48:45
Subject: Pregunta a los gurús de postgres.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group