Skip to Main Content

SQL & PL/SQL

Announcement

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!

How to get hierarchy of a record in single row

Div_2019May 2 2019 — edited May 8 2019

Here is a sample data:

Second able is what i want

Employee
Manager
1a
2a
3b
4b
ab
ab
bc
dc
fd
ef
xd
yf
zf
8a
9a
10a

Here is what i want as result

EmployeeManagerDept Head
1ac
2ac
3bc
4bc
abc
zfc
so on for all rows in orig table
This post has been answered by Frank Kulash on May 6 2019
Jump to Answer
Comments
Post Details
Added on May 2 2019
17 comments
3,198 views