Hey all,
This is my question. I am looking for the method used to select the first, last, next, previous records from an ordered table using SQL statements.
Using ODBC I am pulling data across a network. I want to pull just one record at at time. I need to allow my users to navigate to the next, previous, last and first records, so I need to be able to select the rownum, or rowid, or just the primary key field's value of those relative rows, dependant on the order that the user wants to view the records.
I have been going through the Oracle documentation and have not found what I am looking for. Considering that this must be a fairly common need, I am hoping someone can lead me to the solution.
Thanks.
Mike D
This is my question. I am looking for the method used to select the first, last, next, previous records from an ordered table using SQL statements.
Using ODBC I am pulling data across a network. I want to pull just one record at at time. I need to allow my users to navigate to the next, previous, last and first records, so I need to be able to select the rownum, or rowid, or just the primary key field's value of those relative rows, dependant on the order that the user wants to view the records.
I have been going through the Oracle documentation and have not found what I am looking for. Considering that this must be a fairly common need, I am hoping someone can lead me to the solution.
Thanks.
Mike D