Dear all,
I have a scenario, where I have a single table with all my users listed in them. Each user also has a field indicating the user they report to.
UserID UserDisplayName UserReportsTo
----------- ------------------------------------------------------------ -------------
8 Anthony Karimi 3
9 naheed kassam 8
1 Administrator 1
3 Ramakrishna 2
2 SB 2
(5 row(s) affected)
In my scenario, i need when the user selected is say userid = 3, then the table displays userid = 3; userid = 8 who reports to userid = 3; and userid = 9 who reports to userid = 8 as shown below
UserID UserDisplayName UserReportsTo
----------- ------------------------- -------------
8 Anthony Karimi 3
9 naheed kassam 8
3 Ramakrishna 2
I would really appreciate if someone can assist me achieve this for my CRM project.
Regards,
Naheed