2
Answers

using self join get the output for below table

Photo of narasiman rao

narasiman rao

7y
628
1
  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)