Hello,
I am new to Oracle Apex and I was trying to build a tree and also an interactive report based on the empno column of the emp table.
I have created a tree based on emp table. Now I want to display records of the employee selected in the tree.
Here is the tree query:
select case when connect_by_isleaf = 1 then 0
when level = 1 then 1
else -1
end as status,
level,
"ENAME" as title,
null as icon,
"EMPNO" as value,
null as tooltip,
null as link
from "#OWNER#"."EMP"
start with "MGR" is null
connect by prior "EMPNO" = "MGR"
order siblings by "ENAME"
Can anyone tell me step by step how to go from here?
I tried to follow the thread
4412987 but could not understand much from it.