Re: Group BY ...(cont.)

From: Jesus Aneiros <aneiros(at)jagua(dot)cfg(dot)sld(dot)cu>
To: Antti Linno <alligator(at)all(dot)ee>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Group BY ...(cont.)
Date: 2000-07-05 12:17:00
Message-ID: Pine.LNX.4.10.10007050815220.29443-100000@jagua.cfg.sld.cu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

No, you don't you could say:

SELECT workgroup, id
FROM job
GROUP BY workgroups;

On Wed, 5 Jul 2000, Antti Linno wrote:

> Ok, if I want to use group by, then I have to put every select field
> afterwards to group by. But I do want to group by one field.
> Hence
> select workgroup,id from job group by workgroup,id;
> would create groups of 1?
> But I want to group by workgroups.
> Sorry if my explanation is fuzzy.
> A.
>
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Grigori Soloviov 2000-07-05 12:23:56 PLPGSQL - does not support more than 8 args?
Previous Message tjk@tksoft.com 2000-07-05 12:15:12 Re: Group BY ...(cont.)