i have a table like this
Eno ename
1 a
2 b
3 c
i want to display ename and bossname from table
hint boss is also an employee
Answers were Sorted based on User's Feedback
Answer / sonia sharma
/---- You need one more column to view manager of each emp
suppose Mno is the column which contains corresponding Eno
as manager id--
select emp.ename , mgr.ename from empTable as emp
inner join empTable as mgr on emp.Mno = mgr.Eno
Is This Answer Correct ? | 3 Yes | 1 No |
/---- You need one more column to view manager of each emp
suppose Mno is the column which contains corresponding Eno
as manager id--
select emp.ename , mgr.ename from empTable as emp
SELF JOIN empTable as mgr on emp.Mno = mgr.Eno
Is This Answer Correct ? | 0 Yes | 0 No |
What is deploy, process and build? : sql server analysis services, ssas
What is the purpose of floor function?
What are subqueries in sql server?
What does asynchronous call backs means?
How to generate create table script on an existing table in ms sql server?
How do I find sql server instance name?
What is the contrast between sql and mysql?
Write a query to delete duplicate records in SQL SERVER
What is row by row processing ?
Mention the differences between local and global temporary tables.
Can we use where clause in union?
What are the advantages of partitioning?