multi-column aggregates

From: Chris Kratz <chris(dot)kratz(at)vistashare(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: multi-column aggregates
Date: 2006-03-09 17:56:21
Message-ID: 200603091256.21265.chris.kratz@vistashare.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-03-09 18:08:45 Re: multi-column aggregates
Previous Message gkoskenmaki 2006-03-09 17:21:45 ExtenDB