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 / adil
I think this one will work
Select a.ename as Employee ,b.ename as Manager from
EMP ,EMP B
where
A.MGR_ID=B.empno
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are procedures used for?
What are pl/sql cursor exceptions?
What is compiled query?
What are stored procedures used for?
What is the difference between clustered and non-clustered index in sql?
What is spool?
How long it takes to learn pl sql?
what is index? : Sql dba
Name three sql operations that perform a sort.
How do I add a database to sql?
What is sql*plus?
how do you know the version of your mysql server? : Sql dba
What is an example of translating a date into julian format?
What is the use of primary key?
Any attempt to navigate programmatically to disabled form in a call_form stack is allowed?