Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a query for primary key constraint with identity key word?

1043


What are rest-style architecture's?

172


Why are you getting errors when creating a new odbc dsn?

1231


How to make a remote connection in a database?

982


What is the cartesian product of the table?

958


What is the distinction amongst delete and truncate?

1075


How do I clean up sql server transaction log?

1075


What do you mean by collation recursive stored procedure?

1066


How to check parameter value in stored procedure sql server?

982


How do I debug a stored procedure in sql server?

1118


How to specify the collation for a character data type in ms sql server?

1037


What are the essential components of sql server service broker?

1023


What stored by the tempdb ? : sql server database administration

1059


What are the characteristics of modern DBMS?

1094


Explain microsoft sql server functions?

1121