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 -> Bug in Oracle 9i?

Bug in Oracle 9i?

From: Keith Sauvant <ne.ws.ksau_at_spamgourmet.com>
Date: Thu, 18 Dec 2003 14:11:43 +0100
Message-ID: <brs92h$rsk$1@nets3.rz.RWTH-Aachen.DE>


Hi Experts,

when sub-selecting a column of a select-result that contains
- a ROW_NUMBER() OVER() and

I get an ORA-03113 (end-of-file on communication channel).

To reproduce:

CREATE TABLE test1 (test1_id int);
CREATE TABLE test2 (test2_id int, fk_test1_id int);

INSERT INTO test1 VALUES (1);
INSERT INTO test1 VALUES (2);

SELECT test1_id FROM
(

     SELECT ROW_NUMBER() OVER( ORDER BY test1.test1_id asc) row_num,
     test1.test1_id
     FROM test1
     LEFT JOIN test2 ON test2.fk_test1_id=test1.test1_id
     GROUP BY test1.test1_id

)

The query works, if
- using the inner select only

Can anybody explain that behaviour?

Thank you in advance and best regards from Aachen, Germany Keith Received on Thu Dec 18 2003 - 07:11:43 CST

Original text of this message

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