For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
select "EMPNO" id, "MGR" pid, "ENAME" name, null link, null a1, null a2 from "#OWNER#"."EMP"
select 1 id, null pid, 'Rootname' name, null link, null a1, null a2 from link union all select toc_level+1000000 id, case when toc_parent is null then 1 else toc_parent+1000000 end pid, toc_description name, null link, null a1, null a2 from toc where state_id = 'ZZ';