Re: Can EXCEPT Be Used for To Solve This Problem?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Lane Van Ingen" <lvaningen(at)esncc(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Can EXCEPT Be Used for To Solve This Problem?
Date: 2005-08-24 23:21:03
Message-ID: 10454.1124925663@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Lane Van Ingen" <lvaningen(at)esncc(dot)com> writes:
> I want to select 2nd oldest transaction from foo (transaction 3).

Can't you just do

select * from foo order by update_time desc offset 1 limit 1

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fuhr 2005-08-24 23:34:49 Re: Can EXCEPT Be Used for To Solve This Problem?
Previous Message Lane Van Ingen 2005-08-24 20:47:16 Can EXCEPT Be Used for To Solve This Problem?