GROUP by - Mailing list pgsql-sql

From Antti Linno
Subject GROUP by
Date
Msg-id Pine.LNX.4.04.10007051409050.13491-100000@all.ee
Whole thread Raw
Responses Re: GROUP by
Re: GROUP by
List pgsql-sql
I have table job, and I want to select data from it, grouping by
workgroups. When I use select id,name from job where workgroup='top leaders' AND ...  group by
workgroup;
When I want to group, I get 
ERROR:  Illegal use of aggregates or non-group column in target list
I'm confused, why does query work only with sum,min etc. alone in
select.

Antti




pgsql-sql by date:

Previous
From: "Gerhard Dieringer"
Date:
Subject: Antw: Problem with joins
Next
From: Jerome Alet
Date:
Subject: Re: GROUP by