Blog Demos
Multi Date Select| Google Geocoding| Rexexp Searching| Hierarchical Control| Pipelined Function| Enhanced Shuttle|
Employees    
EMPNOENAMEJOBMGRHIREDATESALCOMMDEPTNO
7839KINGPRESIDENT - 17-NOV-815000 - 10
1 - 1
Back To The Blog    
http://christopherbeck.wordpress.com/2008/09/05/report-hierarchical-data-with-apex/
SQL Queries    
Main Query
select * 
  from emp 
 where nvl(mgr,-1) = :p5_empno
Path Query
select '<a href="f?p=' || :app_id || ':5:' || :app_session || 
       '::::p5_empno:-1">Top</a> >>> ' ||
         substr(
           sys_connect_by_path( 
           '<a href="f?p=' || :app_id || ':5:' || :app_session || 
           '::::p5_empno:' || empno || '">' || ename || 
           '</a>', ' : ' ), 4 ) path
  from emp
 where empno = :p5_empno
 start with mgr is null
connect by prior empno = mgr

nobody
en-us