Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.
Find manager for employee
----------------------------------------------
1 Suresh c++ NULL
2 Suresh c++ NUll
3 Suresh c++ 2
5 Sarathy testing 2
6 Rajaraman c# 1
7 joe Flash 1
I have the employee detail table ,In that i want to find the manager for each employee .
The employee name and manager column are present in same table
Profile Answers by rajaramanv Questions by rajaramanv
Questions by rajaramanv
Editorial / Best Answer
mktiwaryProfile Answers by mktiwary Questions by mktiwary
If you take the normal Oracle Employee (emp) table which consists of columns such as Employee Number (EMPNO) and Manager Number (MGR) then the query to find managers for all the employee is:
select e.ename as Employee, m.ename as Manager from emp e, emp m
where e.MGR = m.EMPNO
Related Answered Questions
Related Open Questions