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

Home -> Community -> Usenet -> c.d.o.misc -> Problem with rownum

Problem with rownum

From: Norbert Biermayr <office_at_softwarehemmelmayr.at>
Date: 11 Jan 2005 06:50:44 -0800
Message-ID: <9fa09005.0501110650.4f2e6dab@posting.google.com>


The following query shows a right result:

"Select Nummer From Artikel where Nummer > 60000 and Rownum < 2 Order by Nummer"

The result is the correct number 60001.

With the statement

"Select * From Artikel where Nummer > 60000 and Rownum < 2 Order by Nummer"

I get a wrong result: Number 68048.

Has anyone an explanation for this behavior?

We are using Oracle 9. The table "Artikel" is indexed with a constraint for the field "Nummer". Received on Tue Jan 11 2005 - 08:50:44 CST

Original text of this message

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