Re: Baffled by "Group By" - Please help!

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Matt Friedman" <matt(at)sprynewmedia(dot)com>
Cc: "PgSql General List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Baffled by "Group By" - Please help!
Date: 2001-03-24 21:34:43
Message-ID: 5881.985469683@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Matt Friedman" <matt(at)daart(dot)ca> writes:
> What am I missing? I'm not seeing why this query doesn't group everything
> and then return unique rows.

Since you didn't show an example of the input and output, it's hard to
tell what your gripe is ... but I'll venture that you didn't want to
group by index.word_count. It doesn't make a lot of sense to group by
something you are using as an aggregate input.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Matt Friedman 2001-03-24 21:47:40 Re: Baffled by "Group By" Resolved and Thanks
Previous Message Matt Friedman 2001-03-24 21:02:20 Baffled by "Group By" - Please help!