<blockquote class="FQ"><div class="FQA">Quote:</div>Hi All
I want sqlquery for following requirement
I have 2 tables 'EMPLOYEE' and "EMP_REPORTING' each employee have reporting person.Reporting person will be another employee.
If Amrutha Reporting to Anisha
Anisha reporing to Janisha
Janisha reporting to Arjun
when amrutha login she needs to access her own details
when anisha login she can access amrutha's and anishas
when Janisha login she can access amrutha's, anishas and janisha's
when arjun login she can access amrutha's, anishas and janisha's and arjuns
Employee table fields are Emp_ID,Emp_Name
Reporting table consist of fields rep_id,emp_id.rep_emp_id
i want to get empids of all employees who reporting to login employee and also employees reporting to
employee under him
Thanks in Advance
Amrutha
</blockquote>