Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 EmployeeTable recursive

Author  Topic 

nagasundartn
Starting Member

3 Posts

Posted - 2012-10-24 : 11:15:36
I have a table as follows

EmployeeID EmployeeName ManagerID
1 John 0
2 Joe 0
3 Kemp 0
4 Kin 1
5 Shaun 1
6 Vetri 2
7 Kite 2
8 Zebra 2
9 Pocket 2
10 Mountain 3
11 Kitchen 3
12 Wood 3
13 Kallis 4
14 Paul 4
15 Peter 6


T.N.Nagasundar

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-10-24 : 11:33:28
see

http://msdn.microsoft.com/en-us/library/ms186243(v=sql.105).aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -