Re: DONT_CARE Aggregate

From: Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>
To: Robert James <srobertjames(at)gmail(dot)com>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: DONT_CARE Aggregate
Date: 2012-12-20 09:28:16
Message-ID: CAL_0b1uVcdNBO_90wVCU+MCUiA7J4qPNDy1B9DXP94dBwbohJg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Dec 19, 2012 at 5:28 PM, Robert James <srobertjames(at)gmail(dot)com> wrote:
> And even better:
> An aggregate which will return the first instance that meets a certain
> predicate?

Take a look at DISTINCT ON.

--
Sergey Konoplev
Database and Software Architect
http://www.linkedin.com/in/grayhemp

Phones:
USA +1 415 867 9984
Russia, Moscow +7 901 903 0499
Russia, Krasnodar +7 988 888 1979

Skype: gray-hemp
Jabber: gray(dot)ru(at)gmail(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2012-12-20 10:00:45 Re: [GENERAL] trouble with pg_upgrade 9.0 -> 9.1
Previous Message Anjali Arora 2012-12-20 09:16:24 Re: Vacuum analyze verbose output