Re: problem with query and group by error - Mailing list pgsql-general

From Scott Marlowe
Subject Re: problem with query and group by error
Date
Msg-id CAOR=d=27CgPwPe4LBVMxR-1d2gBFPgFxbzO41Qd6jRuC2s6diQ@mail.gmail.com
Whole thread Raw
In response to problem with query and group by error  (Susan Cassidy <susan.cassidy@decisionsciencescorp.com>)
Responses Re: problem with query and group by error  (Susan Cassidy <susan.cassidy@decisionsciencescorp.com>)
List pgsql-general
On Fri, Feb 21, 2014 at 10:40 AM, Susan Cassidy
<susan.cassidy@decisionsciencescorp.com> wrote:
>
> I originally had the query without the group by, but I had duplicate rows,
> so I added a group by to eliminate them.


Have you tried select distinct or select distinct on ()?


pgsql-general by date:

Previous
From: Emanuel Calvo
Date:
Subject: Re: problem with query and group by error
Next
From: Susan Cassidy
Date:
Subject: Re: problem with query and group by error