views:

17

answers:

1

This is just like a referral program. A guy can refer 3 guys under him i.e, 3 is referring three guys namely 4 5 8 similarly 4 is referring 9 10 and 11 likewise 8 is referring 12, 13 it goes like this..

I want a query to get all EmpId under Supervisor 3

+1  A: 

look here:

http://msdn.microsoft.com/en-us/library/ms186243.aspx

MeBigFatGuy