paresh mehta,
What could go wrong is, if you are selecting like this:
"Select <distinct col> from <table> where rownum < 20"
because you are not selecting from all rows, but from
the 1st 19 !!!!
If you use it the way, it was posted, it works correct !
The posted statements selects from all rows, and returns the 1st eight
rows from the resultset, which is sorted in the manner you wish.
......or tell your group leader to post a rownum statement giving
wrong results.....
Anybody feel free to tell me I am wrong !!!! (if I am ;-)) )
> Frank Foelz <
_________________________________
Scheidt & Bachmann GmbH
Gestaltung Parkhaussysteme
Breite Strasse 132
41238 Moenchengladbach
Phone : ++49 2166 / 266 - 837
Fax: ++49 2166 / 266 - 615
e-mail : mailto:[EMAIL PROTECTED]
URL : http://www.scheidt-bachmann.de
________________________________________________________________________
-----Ursprüngliche Nachricht-----
Von: Bunyamin K.Karadeniz [mailto:[EMAIL PROTECTED]]
Gesendet am: Donnerstag, 1. Februar 2001 13:31
An: Multiple recipients of list ORACLE-L
Betreff: Re: ***Problem***
No, No not for this statement , my group leader tells that rownum is not
used so much in applications becouse it can give wrong results sometimes. I
do not know if it is correct . I ask you for approve him or not..
Thanks
----- Original Message -----
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 1:25 PM
paresh mehta,
what was wrong with the sql-statement using <rownum>
It works perfeclty, or am I wrong ??
regards
> Frank Foelz <
_________________________________
Scheidt & Bachmann GmbH
Gestaltung Parkhaussysteme
Breite Strasse 132
41238 Moenchengladbach
Phone : ++49 2166 / 266 - 837
Fax: ++49 2166 / 266 - 615
e-mail : mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
URL : http://www.scheidt-bachmann.de <http://www.scheidt-bachmann.de/>
________________________________________________________________________
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Foelz.Frank
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).