What is the best way.....?

  • Hello,

    my table contains 2 columns .

    EmpID varchar(10),ReportingToID varchar(10)

    how to write a query that returns all the employees under a ReportingToID ...?

    the key here is i want all the employees that are under a ReportingToID tree.

    i don't know the exact number of levels under a ReportingToID

    empID      ManagerID

    abc      ""

    def    abc

    ghi   abc

    jkl    ghi

    klk   jkl

    mmm jkl

     

    Thank You

    Sai

     

     

     

     

  • This was removed by the editor as SPAM

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

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