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

How to modify the underlying query of an existing view?

991


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

4386


What is the purpose of sql profiler in sql server?

1020


Explain identity in sql server?

1013


What is checkpoint process in the sql server?

1033


How to download and install microsoft sql server management studio express?

1038


Explain indexing and what are the advantages of it?

1028


What is the difference between drop table and truncate table?

924


What is blocking and how would you troubleshoot it? : sql server database administration

1043


What is the difference between Clustered and Non-Clustered Index?

1059


What is the beast way to write CTE in SQL Server ?

1045


Mention what are the different types of ssrs reports?

152


What is read uncmmited?

1060


How to backup SQL Server Reporting Services ?

148


How to execute the cursor queries with "open" statements?

1180