i have a table emp and columns ename,empno,mgr_id,i need ename,manager name as result i.e employee respective manager.. example
empno ename mgr_id
1 john 3
2 paul 3
3 smith 1
4 kevin 1
5 stewart 2
result has to look like this
ename manager
john smith
paul smith
smith john
kevin john
stewart paul
can u plz help me out in this.....
Answer Posted / rajesh venati
select e.ename as employee_name,m.ename as manager_name from
emp e, emp m where e.mgr_id=m.empno;
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is normalization in sql?
What is pl sql commands?
What does closing a cursor do?
What is the non-clustered index in sql?
What is a sql trace file?
What is rowtype?
what is sub-query? : Transact sql
What is user defined functions?
What is not in sql?
Why is sql important?
Are there any features that are decommissioned in 11g that are not present in 11g?
What is the difference between inner join and natural join?
What is sql partition function?
what are the limitations of identity column? : Transact sql
What kind of join is join?