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 / nanne saheb c
select e.empname,m.ename mgrname from emp e,emp m
where e.mgrid=m.empid;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the the update statement in sql?
what is the maximum length of a table name, database name, and fieldname in mysql? : Sql dba
Why do we need unique key in a table?
What is a sql driver?
what is sql? : Sql dba
How do I find duplicates in a single column in sql?
What is pl/sql language case sensitive?
What are the various levels of constraints?
How to read/write files from pl/sql?
What are dml commands?
What is row_number () in sql?
explain about mysql and its features. : Sql dba
What is trigger point?
What is nvarchar in sql?
What are the possible values that can be stored in a boolean data field?