Grouping and aggregates

Поиск
Список
Период
Сортировка
От Peter Darley
Тема Grouping and aggregates
Дата
Msg-id NNEAICKPNOGDBHNCEDCPOEHMCJAA.pdarley@kinesis-cem.com
обсуждение исходный текст
Ответы Re: Grouping and aggregates  (Joel Burton <joel@joelburton.com>)
Список 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 по дате отправления:

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: Re : Solaris Performance - 64 bit puzzle
Следующее
От: Joel Burton
Дата:
Сообщение: Re: Grouping and aggregates