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

Home -> Community -> Usenet -> c.d.o.server -> 8i: querying nested tables with 'order by'

8i: querying nested tables with 'order by'

From: Carsten Reinhard <reinhard_at_informatik.uni-hannover.de>
Date: Tue, 12 Oct 1999 10:34:43 +0200
Message-ID: <3802F2A3.F4B25C6C@informatik.uni-hannover.de>


Hi,

we are having trouble querying nested tables with 'order by' (Oracle 8i on Solaris).

We use the following queries:

select * from doptest; -- ok
select cast(multiset(select a, b from table(d.dopval)) as dopnt) as test from doptest d; -- ok
select cast(multiset(select a, b from table(d.dopval) order by a, b) as dopnt) as test from doptest d; -- ok
select cast(multiset(select a, b from table(d.dopval) order by a) as dopnt) as test from doptest d; -- not ok select cast(multiset(select a, b from table(d.dopval) order by b) as dopnt) as test from doptest d; -- not ok

Has anyone any experience/solution for this problem ??

All necessary definitions for the example to run are appended below.

Carsten Reinhard,
University of Hannover, Department of Mathematics and Computer Science.

create table doptest (dopval dopnt) nested table dopval store as dopntab;

insert into doptest values (dopnt(doppel(2, 3), doppel(4, 5), doppel(0, 4)));

insert into doptest values (dopnt(doppel(7, 3), doppel(5,1))); Received on Tue Oct 12 1999 - 03:34:43 CDT

Original text of this message

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