In this statement, I'm trying to get (last working day - 6 days) from a specific table. If I remove the ORDER BY, I can never retrieve the correct rownum and of course the date.


Regards

M.Emre HANCIOGLU
Masterfoods Services GmbH
ISI Application Support
Tel : +49 2162 500-2576
Fax: +49 2162 41497
E-Mail: [EMAIL PROTECTED]

----- Forwarded by Emre M. Hancioglu/VSN/Effem on 11.02.2003 17:42 -----

Stefan Jahnke <[EMAIL PROTECTED]>
bov.de
Sent by: [EMAIL PROTECTED]

11.02.2003 17:23
Please respond to ORACLE-L


To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
cc:


Subject: AW: Error in Rownum Select


 
Hi
 
Maybe I miss the point, but I don't really see the need for an order by here ? Can't you just dismiss it ?
 
Regards,
Stefan
 

Stefan Jahnke
Consultant

BOV Aktiengesellschaft

Voice: +49 201 - 4513-298

Fax: +49 201 - 4513-149

mailto: [EMAIL PROTECTED]

Please remove nospam to contact me via email.

visit our website: http://www.bov.de
subscribe to our newsletter:
http://www.bov.de/presse/newsletter.asp

Sicherheitsluecken mit IT-Security-Konzepten von BOV effizient schliessen! Weitere Informationen unter +49 201/45 13-240 oder E-Mail an mailto:[EMAIL PROTECTED].

Wie Sie wissen, koennen ueber das Internet versandte E-Mails leicht unter fremden Namen  erstellt oder manipuliert werden. Aus diesem Grunde bitten wir um Verstaendnis dafuer, dass  wir zu Ihrem und unserem Schutz die rechtliche Verbindlichkeit der vorstehenden Erklaerungen und Aeusserungen ausschliessen.

As you are probably aware, e-mails sent via the Internet can easily be copied or manipulated by third parties. For this reason we would ask for your understanding that, for your own protection and ours, we must decline all legal responsibility for the validity of the statements and comments given above.

-----Ursprüngliche Nachricht-----
Von:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet:
Dienstag, 11. Februar 2003 16:34
An:
Multiple recipients of list ORACLE-L
Betreff:
RE: Error in Rownum Select


It seems so..


Thanks.


Regards

M.Emre HANCIOGLU
Masterfoods Services GmbH
ISI Application Support
Tel : +49 2162 500-2576
Fax: +49 2162 41497
E-Mail: [EMAIL PROTECTED]

----- Forwarded by Emre M. Hancioglu/VSN/Effem on 11.02.2003 16:10 -----


"Stephane Faroult" <[EMAIL PROTECTED]>

oriolecorp.com

11.02.2003 15:32
Please respond to "Stephane Faroult"


To: [EMAIL PROTECTED]
cc:



Subject: RE: Error in Rownum Select



 
Not absolutely certain of it but I think that allowing 'order by' in views (regular or in-line) is a feature which was introduced with 8.1.6. No easy workaround ...

>----- ------- Original Message ------- -----
>From: [EMAIL PROTECTED]
>To: Multiple recipients of list ORACLE-L
><[EMAIL PROTECTED]>
>Sent: Tue, 11 Feb 2003 05:39:13
>
>Hello,
>Can anyone tell me the reason, why I get an error
>because of the "Order
>By"  in Oracle 8.1.5.
>It works fine in 8.1.7 and 9.2.
>
>declare
> v_t number(8);
>begin
>  SELECT tagesdatum into v_t
>    FROM (SELECT rownum n, tagesdatum
>                      FROM (SELECT tagesdatum
>                                       FROM kalender
>                                                      WHERE  tagesdatum <=
>to_number(to_char(sysdate,'yyyymmdd'))
>                                       AND  tag_type = 'A'
>                                                      ORDER BY tagesdatum DESC
>                                                      )
>                        )
>  WHERE n=6;
>end;
>
>
>
>Regards
>
>M.Emre HANCIOGLU
>Masterfoods Services GmbH
>ISI Application Support

>Tel : +49 2162 500-2576
>Fax: +49 2162 41497
>E-Mail: [EMAIL PROTECTED]

Regards,

Stephane Faroult
Oriole




Reply via email to