sirius98 has asked for the wisdom of the Perl Monks concerning the following question:
My data looks like this:
({idNumber,Date,Price})=({ax1,1/12/04,$300},
{ax2,1/12/04,$500},{ax1,2/12/04,$200},{ax1,3/12/04,$100},
{ax3,1/12/04,$300},{ax2,1/12/04,$400})
EDITED
My problem is i need to find the price difference between
the two most recent items of any items with the same id number.
Im using DBI the driver is ODBC and the database Access.
I was hoping to do mosy of the processing in SQL.
Any Help would be great Pete
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI, SQL query problem
by saskaqueer (Friar) on Dec 25, 2004 at 02:59 UTC | |
by sirius98 (Acolyte) on Dec 25, 2004 at 03:40 UTC | |
|
Re: DBI, SQL query problem
by VSarkiss (Monsignor) on Dec 25, 2004 at 20:06 UTC | |
by sirius98 (Acolyte) on Dec 26, 2004 at 00:45 UTC | |
|
Re: DBI, SQL query problem
by thor (Priest) on Dec 25, 2004 at 15:35 UTC | |
|
Re: DBI, SQL query problem
by aquarium (Curate) on Dec 25, 2004 at 21:28 UTC |