Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: Which is the best way to select the Nth row ?

Re: Which is the best way to select the Nth row ?

From: Brian Peasland <peasland_at_edcmail.cr.usgs.gov>
Date: Mon, 4 Dec 2000 15:22:21 GMT
Message-ID: <3A2BB6AD.67B6E112@edcmail.cr.usgs.gov>

In relational database theory, there is no such thing as the Nth row of a table. This is becuase there is no *order* to the rows in a relational table. Since relational database theory does not define the Nth row in a table, you will not find a simple SELECT statement which returns this row.

HTH,Brian

Francesco Marchioni wrote:
>
> Hello,
> I need a very simple task. A statement that SELECTS the Nth
> row from a table. Reading from manuals I cannot find a single
> statement to do it....as far as I understand you have to work with
> ROWID, issuing a few commands to achieve it, but I do hope there's a faster
> way
> to do it.....isn't there ?
> Thanks
> Francesco
 

-- 
========================================
Brian Peasland
Raytheons Systems at
  USGS EROS Data Center
These opinions are my own and do not
necessarily reflect the opinions of my 
company!
========================================
Received on Mon Dec 04 2000 - 09:22:21 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US