2
Reply

using self join get the output for below table

narasiman rao

narasiman rao

Oct 14 2017 10:19 PM
188
  Empid  Empname  Managerid

1                   A                Null
2                  B                  1
3                  C                  2
4                  D                  1
5                  E
6                  F                    3

i want to write the query using self join and find out for Each empname who is manager id using query in sql server
 

Answers (2)