Re: an aggregate to return max() - 1 value?

Поиск
Список
Период
Сортировка
От Rob Sargent
Тема Re: an aggregate to return max() - 1 value?
Дата
Msg-id 4B901607.2090409@gmail.com
обсуждение исходный текст
Ответ на an aggregate to return max() - 1 value?  (Louis-David Mitterrand <vindex+lists-pgsql-sql@apartia.org>)
Список 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 по дате отправления:

Предыдущее
От: Louis-David Mitterrand
Дата:
Сообщение: an aggregate to return max() - 1 value?
Следующее
От: Gerardo Herzig
Дата:
Сообщение: Re: an aggregate to return max() - 1 value?