Re: agregates - Mailing list pgsql-general

From Eric B.Ridge
Subject Re: agregates
Date
Msg-id 0CFF0F69-2E57-11D7-AFE7-0003937E3354@tcdi.com
Whole thread Raw
In response to Re: agregates  (Andrew Sullivan <andrew@libertyrms.info>)
Responses Re: agregates
List pgsql-general
On Wednesday, January 22, 2003, at 02:28  PM, Andrew Sullivan wrote:

> On Wed, Jan 22, 2003 at 10:07:06AM -0700, David Blood wrote:
>>
>> is there a better way to get the max - 1?
>
> You could try ORDER BY paymentid DESC LIMIT 1 OFFSET 1.  That'll give

wouldn't you want LIMIT 2 OFFSET 1 ?

eric


pgsql-general by date:

Previous
From: Medi Montaseri
Date:
Subject: When to Vacuum
Next
From: Tom Lane
Date:
Subject: Re: Re agregates