sorting siblings in connect by in 8i [message #22850] |
Fri, 01 November 2002 09:32 |
Bob
Messages: 49 Registered: March 1999
|
Member |
|
|
Hi Gurus
need a quick response . . .
How should I sort the siblings(department description) in the following qry. I'm using 8.1.7.
select lpad(' ',10*(ll-1))||description as description
from
( select parent_skey, child_skey, dept_id, level as ll
from table a
start with parent_key = 15
connect by parent_key = prior child_key
)v, deptt
where deptt.dept_id = v.dept_id
Thanks in advance . . .
|
|
|
|
|