I'm setting up an ASP page that makes a call to a DB2 database of banking transactions. I'd like to display the last 10 transactions by date for a particular account number. In SQL Server, I use the "SELECT TOP 10" syntax to load a recordset with the top 10 rows by date but this syntax does not work in DB2.
I'd prefer not to pull down the entire recordset of transactions by account number and only pull down what I need so I'd rather not use a cursor and the FETCH command.
Anyone have any ideas??
Thanks,
Scott Wilkinson
I'd prefer not to pull down the entire recordset of transactions by account number and only pull down what I need so I'd rather not use a cursor and the FETCH command.
Anyone have any ideas??
Thanks,
Scott Wilkinson