Re: [SQL] Help refining/eliminating recursive selects

2004-02-19 Thread Yudie
What about something like this: select * from test order by tx_date desc limit 1 Yudie - Original Message - From: "Edmund Bacon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 19, 2004 5:09 PM Subject: [SQL] Help refining/eliminating recur

Re: [SQL] Help refining/eliminating recursive selects

2004-02-19 Thread Stephan Szabo
On Thu, 19 Feb 2004, Edmund Bacon wrote: > > I have the following table: > > create table test ( > idserial primary key, > product integer, > tx_date date, > quantity integer) > > with the following data: > id | product | tx_date | quantity > +-+---

[SQL] Help refining/eliminating recursive selects

2004-02-19 Thread Edmund Bacon
I have the following table: create table test ( idserial primary key, product integer, tx_date date, quantity integer) with the following data: id | product | tx_date | quantity +-++-- 1 | 1 | 2004-01-01 | 10 2 |