Re: problem with query and group by error

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Susan Cassidy <susan(dot)cassidy(at)decisionsciencescorp(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: problem with query and group by error
Date: 2014-02-21 18:38:12
Message-ID: CAOR=d=27CgPwPe4LBVMxR-1d2gBFPgFxbzO41Qd6jRuC2s6diQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Feb 21, 2014 at 10:40 AM, Susan Cassidy
<susan(dot)cassidy(at)decisionsciencescorp(dot)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 ()?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Susan Cassidy 2014-02-21 19:15:45 Re: problem with query and group by error
Previous Message Emanuel Calvo 2014-02-21 17:53:05 Re: problem with query and group by error