Re: Can EXCEPT Be Used for To Solve This Problem? - Mailing list pgsql-sql

From Vivek Khera
Subject Re: Can EXCEPT Be Used for To Solve This Problem?
Date
Msg-id 6A9A99AA-E7AF-4922-8B79-75A370582E63@khera.org
Whole thread Raw
In response to Can EXCEPT Be Used for To Solve This Problem?  ("Lane Van Ingen" <lvaningen@esncc.com>)
Responses Re: Can EXCEPT Be Used for To Solve This Problem?
List pgsql-sql
On Aug 24, 2005, at 4:47 PM, Lane Van Ingen wrote:

> I want to select 2nd oldest transaction from foo (transaction 3). The
> solution below
> works, but I think there may be a better way. Does anyone else have  
> a better
> idea?

why not just select order by update_time desc limit 2 then discard  
the first row you fetch?


Vivek Khera, Ph.D.
+1-301-869-4449 x806




pgsql-sql by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: How this query!
Next
From: "Mark R. Dingee"
Date:
Subject: Re: Can EXCEPT Be Used for To Solve This Problem?