Hi all,
i have a table as follows
empid empname mgrid deptid
1 a 3 4
2 b 1 5
3 c 2 3
4 d 3 6
5 e 4 7
i want the output as
empname mgrname
a c
b a
c b
d c
e d
Answer Posted / gunturajesh
select a.empname empname,b.empname mgrname from emp a,emp b
where a.mgrid=b.empid
| Is This Answer Correct ? | 20 Yes | 2 No |
Post New Answer View All Answers
What are the types pl/sql code blocks?
What are the properties of a transaction?
What are the rules to be applied to nulls whilst doing comparisons?
What is over () in sql?
Is delete faster than truncate?
How do I run a query in pl sql developer?
what is the difference between group by and order by in sql? : Sql dba
What is java sql package?
Is primary key clustered index?
What is oracle sql developer?
What is the basic structure of an sql?
What is sql server and ase?
How do I install microsoft sql?
What is function and procedure in pl sql?
how to get a list of indexes of an existing table? : Sql dba