Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Query to find User's Manager's Manager

RV
Regular Contributor
Regular Contributor

I am looking for a Query to fetch username and their immediate manager and manager's manager.  Can you please help me with the query ?

1 REPLY 1

rushikeshvartak
All-Star
All-Star

select u.username user ,m.username mgr ,mm.username mgr_mgr from users u left join users m on u.manager=m.userkey left join users mm on m.manager=mm.userkey


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.