treeview in oracle
select LEVEL,ID,NAME,REPORT_TO
from top_dogs
START WITH report_to IS NULL
CONNECT BY PRIOR id=report_to
select LPAD(NAME,length(NAME)+LEVEL*2,'_')
from top_dogs
START WITH report_to IS NULL
CONNECT BY PRIOR id=report_to
sharing some tech problems and soln
select LEVEL,ID,NAME,REPORT_TO
from top_dogs
START WITH report_to IS NULL
CONNECT BY PRIOR id=report_to
select LPAD(NAME,length(NAME)+LEVEL*2,'_')
from top_dogs
START WITH report_to IS NULL
CONNECT BY PRIOR id=report_to
Posted by
Sajjad
at
1:40 am
0
comments
select * from (select * from top_dogs order by salary DESC)where ROWNUM<=3
top 3 salary earners
Posted by
Sajjad
at
1:46 am
0
comments