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 / mahesh (ezeesoft)

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by intent locks?

1063


How to name query output columns in ms sql server?

1016


What is an indexed view?

1008


What are the different kinds of ssrs reports?

221


What is best institute to Learn DotNET And SQL in chennai?

2221


What are the pros and cons of putting a scalar function in a queries select list or in the where clause?

1268


What is the use of keyword with encryption. Create a store procedure with encryption?

1000


Explain the concept of view and Types of views in SQL server?

1037


What is difference between cte and view?

979


What is mean by clustered index and non clustered index, give syntax of creation? : sql server database administration

1127


Explain having clause?

1030


Difference between Sql server reporting services and Crystal reports?

175


What is Fragmentation and Defragmentation? For 32GB Table,How can we do the fragmentation?

4463


What is scheduled job and how to create it?

1038


Does table partitioning improve performance?

1015