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

write the query for find the top 2 highest salary in sql
server

Answer Posted / krishna

select * from emp e where 2>=(select count(distinct esal)
from emp where e.esal<=esal)

Is This Answer Correct ?    8 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the truncate command?

918


Your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files?

1127


If I delete a template from the list in sql studio, will it be deleted from the hard disk? : sql server management studio

933


Why people hate cursor?

1096


Explain about merge replications?

964


How to set database to be single_user in ms sql server?

967


What are partitioned views and distributed partitioned views?

977


What does it mean to invest in the index?

905


Does the unique constraint create an index?

988


What are logical database components? : SQL Server Architecture

959


How you can get a list of all the table constraints in a database? : Sql server administration

948


Write an sql query to sort a table according to the amounts in a row and find the second largest amount.

879


What is service broker? : sql server database administration

940


What is the meaning of lock escalation and why/how to stop this? : sql server database administration

986


How do you maintain database integrity where deletions from one table will automatically cause deletions in another table?

1138