Hi back again,
That code you gave works great if i need to know all the managers. I only need to know about managers that are above that user.
Any ideas?
Rohan
Thanks, i have just been thinking about it and your right,
you would have to specify the number of levels in order to know how many joins to create.
I think that i will create a stored procedure and use similar code as you said...
Thanks
Rohan
The thing is the manager and user table is the same table
there has to be an outer join some where
here are the fields of the table
UserId
ManagerID
UserName
The manager ID points to another UserID
Hi there
I have a table that look like this it contains user names
User
+--------------
Paul
Dan
Peter
Simon
John
Each user can be a manager of a different user. I have written a query that shows who manages who
User Manager
+--------------+--------
Paul Dan
Dan Peter
Peter John
Simon...
Hi there guys, i have just started working with InterDev and i have been having a few problems, At the moment i have made a new project on a server called testintranet, i have also set up a connection to a SQL server. This is working fine.
On the main page i have got a GridDTC which uses...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.