multi-column aggregates

Поиск
Список
Период
Сортировка
От Chris Kratz
Тема multi-column aggregates
Дата
Msg-id 200603091256.21265.chris.kratz@vistashare.com
обсуждение исходный текст
Ответы Re: multi-column aggregates  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: multi-column aggregates  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-general
Hello All,

Is there any way in postgres to have an aggregate that uses input from two
columns without using composite types?  The example we are working on is a
first or last aggregate which requires a data value and a date column.  The
result would be to find the latest date within the group and return the
associated data value.  Since there may be multiple date columns each with
dependent columns, we can't use a sort by date and a simpler first or last
aggregate.

Thanks,

-Chris
--
Chris Kratz

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

Предыдущее
От: "gkoskenmaki"
Дата:
Сообщение: ExtenDB
Следующее
От: Tom Lane
Дата:
Сообщение: Re: multi-column aggregates