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

select the 3rd maximum salary from sql server database if 4
(just an example In practically I may not know the exact
situation) of the highest salaries are equal.

Answer Posted / sunil nair

SELECT EmpID,Salary from tblSalary a where 3=(select count
(EmpID) from tblSalary b where b.empid=a.empid)

for any RDBMS

Is This Answer Correct ?    2 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the steps to create and execute a user-defined function in the sql server?

977


Can I delete event logs?

929


What Are the Main Features of SQL Azure?

117


Do you know exporting and importing utility?

1049


What is a print index?

891


Explain what are commit and rollback in sql?

935


How to rename an existing table with the "sp_rename" stored procedure in ms sql server?

1033


Define outer join?

1003


Why do we use stored procedures in sql server?

949


How to make conditional sum in ssrs?

177


Can you explain about buffer cash and log cache in sql server?

952


Write down the syntax and an example for create, rename and delete index?

990


How to change the name of a database user?

963


you have separate development and production systems you want to move a copy of a development database into production to do this, you do a backup on the development system and restore to the production system after a few minutes, you begin getting calls from several customers saying that they are denied access to the system why? : Sql server administration

989


Introduction of rollup clause using sum and group by clause?

968