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

Can you explain powershell included in sql server 2008?

991


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

1298


Explain about unique identifier data type in sql server?

976


What are the different types of backups avaialabe in sql server 2005?

1062


What is the difference between row_number and dense_rank?

936


How do I trace a query in sql server?

1000


Differentiate between delete and truncate.

1112


How many types of cursor type are there?

1166


What type of locking occurs during the snapshot generation? : sql server replication

1375


What are the restrictions while creating batches in sql server?

1116


Explain what is scheduled job and how to create it?

1026


What is ssrs?

135


Tell me when is the update_statistics command used?

1201


Do comments need to go in a special place in sql server 2005?

913


Explain transaction server distributed transaction?

1039