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

What is the use of attributehierarchyvisible ? : sql server analysis services, ssas

1014


What are the types of database schema? : sql server analysis services, ssas

1072


What are the reporting services components?

130


What is self join in sql server joins?

966


How would you add a section to a table?

970


What is ms sql server reporting services?

995


How to declare a cursor with "declare ... Cursor" in ms sql server?

982


what is a sub-report?

132


You want to implement the one-to-one relationship while designing tables. How would you do it?

913


what is blocking? : Sql server database administration

983


What are the different ways you can create databases in sql server?

1044


What is dimension table? : sql server analysis services, ssas

976


What is wide table?

886


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

1949


How do I delete a sql server database?

988