Re: an aggregate to return max() - 1 value? - Mailing list pgsql-sql

From Rob Sargent
Subject Re: an aggregate to return max() - 1 value?
Date
Msg-id 4B901607.2090409@gmail.com
Whole thread Raw
In response to an aggregate to return max() - 1 value?  (Louis-David Mitterrand <vindex+lists-pgsql-sql@apartia.org>)
List pgsql-sql
'select max(col) where col < max(col)' should work but you have to do 
'where col < (select max(col) '

On 03/04/2010 01:09 PM, Louis-David Mitterrand wrote:
> Hi,
>
> With builtin aggregates is it possible to return the value just before
> max(col)?
>
> Thanks,
>


pgsql-sql by date:

Previous
From: Louis-David Mitterrand
Date:
Subject: an aggregate to return max() - 1 value?
Next
From: Gerardo Herzig
Date:
Subject: Re: an aggregate to return max() - 1 value?