Grouping and aggregates - Mailing list pgsql-general

From Peter Darley
Subject Grouping and aggregates
Date
Msg-id NNEAICKPNOGDBHNCEDCPOEHMCJAA.pdarley@kinesis-cem.com
Whole thread Raw
Responses Re: Grouping and aggregates  (Joel Burton <joel@joelburton.com>)
List pgsql-general
Friends,
    I've got the following query, which doesn't work because you apparently
can't group by table.*.  I was wondering if there was any way to write this
without having to have every field listed in the GROUP BY?

My query:
SELECT code_list.* FROM code_list LEFT JOIN codes ON
code_list.id=codes.codeid GROUP BY code_list.* ORDER BY Count(codes.id);

Thanks,
Peter Darley


pgsql-general by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: Re : Solaris Performance - 64 bit puzzle
Next
From: Joel Burton
Date:
Subject: Re: Grouping and aggregates