Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Top 10 solution in Oracle 8.0
On Wed, 30 Jun 1999 11:14:36 +0100, "Jonathan Lewis"
<jonathan_at_jlcomp.demon.co.uk> wrote:
Jonathan,
FYI. One. Looks like you are missing a parenthesis in your query, opps.
>select *
>from
> the
( -- this is needed>where rownum <= 3
> select
> cast(
> multiset(
> select * from jpl_demo order by name
> ) as junk_array
> )
> from dual
> )
And two, in 8i, you can make this a bit simpler. You can turn the 'the( select() )' into 'TABLE'.
select *
from TABLE (
cast( multiset( select * from jpl_demo order by name ) as junk_array ) )
chris.
--
Christopher Beck
Oracle Corporation
clbeck_at_us.oracle.com
Reston, VA.