|
itsvineethpv
Starting Member
India
1 Posts |
Posted - 10/11/2012 : 05:23:41
|
Hai,
Please assume this . There are 4 Employees in a company. A,B,C,D
A is the reporting manger of B . B is the reporting manger of C . C is the reporting manger of D .
When A logins He can See all the sales info of B,C,D which is stored in other DB. When B logins he can See all the sales info of C,D When B logins he can See all the sales info of D
There is chance of adding number of employees in the given hierarchy .
So for getting the datas for A i have to run the same query with different conditions multiple times.
Is there any other method to do this. ? |
|