Re: Group BY

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Group BY
Дата
Msg-id dcc563d10810291501y88a732eq9f8b78e0f4a548a5@mail.gmail.com
обсуждение исходный текст
Ответ на Group BY  (WaGathoni <is.mundu@gmail.com>)
Список pgsql-general
On Wed, Oct 29, 2008 at 2:59 PM, WaGathoni <is.mundu@gmail.com> wrote:
> ....failing with an error to the effect that that that
> coa.doaIhaveChildren and coa.coa_id must be included in the GROUP BY
> clause.... and what is is the recommended course of action.

Generally the solution in postgresql is its proprietary extension of
distinct on ()

select distinct on (field1, field2) field1, field2, field3 from ....

В списке pgsql-general по дате отправления:

Предыдущее
От: "Ravi Chemudugunta"
Дата:
Сообщение: Re: using plpgsql debuggers
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Slow query performance