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 |
Do you know how to send email from database?
What is the command dbcc checkdb used for?
What are actions, how many types of actions are there, explain with example? : sql server analysis services, ssas
Why would you call update statistics?
How you provide security to cube? : sql server analysis services, ssas
What functions can a view be used to performed?
How to know whether our backup is succesfully taken?
How to search for a string in all stored procedure in sql server?
Can a stored procedure call itself(recursive). If yes what level and can it be controlled.?
What is database normalization?
7 Answers Deloitte, Digicel, JPMorgan Chase, Verifone,
how to find nth highest salary
103 Answers Cognizant, IBM, NexGen, Oracle,
Explain what are magic tables in sql server?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)