Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
SQL Query for Supervisor/Employee Hierarchy with Both Direct and Indirect Reports — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

SQL Query for Supervisor/Employee Hierarchy with Both Direct and Indirect Reports

Received Response
176
Views
2
Comments
edited Sep 28, 2020 10:11PM in Reporting and Analytics for HCM 2 comments

Content

I have a task to create a BI Publisher report and attach additional data from different tables based on the bottom level employees. I am wondering if anyone has created a SQL query to get the HCM Supervisor/Employee hierarchy, separated by columns, like in the posted image?  I have been able to pull the employee and their direct supervisor, but I haven't been able to pull the indirect supervisors in the hierarchy format below.    I have seen this hierarchy as an OTBI analysis, but unfortunately OTBI won't work for this reporting requirement.  Any help is appreciated!

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!