Hierarchy of managers for specific employee

  • Hi All,

    I want to find Hierarchy of managers for specific employee. For example if I run query for David Then Output like below

    MANAGER Hierarchy Level

    Abhas 1

    Mike 2

    John 3

    David 4

    I am having two tables. Employee where all employee details are stored. I need to fetch Employee Name as MANAGER from this table. And ManagerID from Supervisor Table.

  • It would be really helpful if you provide the DDL of the tables Employee and Supervisor

    Some sample data and the expected results based on the sample data would help us in giving you tested solutions

    If you are not sure how to provide all this, please go through the link in my signature.


    Kingston Dhasian

    How to post data/code on a forum to get the best help - Jeff Moden
    http://www.sqlservercentral.com/articles/Best+Practices/61537/

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply