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

Answer Posted / saket

self join

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an execution plan? How would you view the execution plan?

806


Find nth lowest salary or get nth lowest salary?

796


Does transparent data encryption provide encryption when transmitting data across the network?

804


How to use column default values in insert statements in ms sql server?

718


How would we use distinct statement? What is its use?

784






What extended events?

766


what kind of lan types do you know? : Sql server database administration

703


What is field in algebra?

788


How can you list all the table constraints in a database?

697


Can anyone tell that the extra features are there in SQL SERVER 2008 that are not available in previous versions .

1686


How to transfer data from a cursor to variables with a "fetch" statement?

767


Can the “if update (colname)” statement be used in a delete trigger?

749


What are the requirements to use odbc connections in php scripts?

807


how can you attach more than 20 ldf files in sql server

1744


Does partitioning ssd reduce performance?

639