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 we have a nested transaction? : Sql server database administration

1059


Why I am getting this error when dropping a database in ms sql server?

1061


What are different types of statements that are supported by sql?

1024


How do I install only the client tools of sql server 2000?

1045


Characterize join and name diverse sorts of joins?

954


What do you understand by check constraint in sql server?

930


What is the tcp/ip port on which sql server runs?

1132


What do you mean by data manipulation language?

994


Can you give me some DBCC command options?(Database consistency check) - DBCC CHECKDB - Ensures that tables in the db and the indexes are correctly linked.and DBCC CHECKALLOC - To check that all pages in a db are correctly allocated. DBCC SQLPERF - It gives report on current usage of transaction log in percentage. DBCC CHECKFILEGROUP - Checks all tables file group for any damage.

2501


How can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role?

1022


How do I uninstall sql server 2014?

918


What are the difference between “where” and “having” clause in sql server?

1054


What do you understand by intent locks?

995


Where in ms sql server is ’100’ equal to ‘0’?

1068


What is bcp? When does it use?

922