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

how to find nth highest salary

Answer Posted / anand patel.

It is a very generic and easy way to find the Nth higest
salary with there employee/s name.

select * from emp where salary =
(select max(salary) from emp where salary in
(select top (select (count(*)-(n-1))from emp) salary
from emp order by salary))

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between having and where clause.

938


List out what other servers you can use with ssrs?

135


How to create a new table in a given schema?

1131


Do you know what is raid and what are different types of raid configurations? : SQL Server Architecture

1011


What is sql server locking?

958


How to bind a view to the schema of the underlying tables?

959


Explain mixed authentication mode of sql server?

1006


What is the dbcc command and why is it used?

1011


What is SubQuery in SQL Server 2008

983


Explain the types of indexes.

1141


How many joins in sql server?

915


What are the difference between primary keys and foreign keys?

930


What is merge statement?

1041


How do I find the default sql server instance?

917


What are the five characteristics of good data?

886