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 / amit kumar

--- Getting 4th highest salary
--- 4 can be replaced with any number

with EmpSal as
(Select *, row_number() over (order by EmpSal Desc)
as 'rownumber' from employee)

Select * from EmpSal where rownumber =4

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why I have to use stored procedures?

1061


How can you tell if a database object is invalid?

1080


What is a natural primary key?

1057


What are difference between Cluster index and Non-Cluster index?

1086


What are the difficulties faced in cube development? : sql server analysis services, ssas

1051


How to query multiple tables jointly?

997


IF more than one Site is accessing the same Database server and I want to move the DB with Minimum down time? How will you do

1808


What is a bit datatype?

993


Explain tablesample?

1005


What is the difference between dropping a database and taking a database offline?

1178


What are the differences between clustered and non-clustered index?

1037


What are partitioned views?

1010


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

957


Why can there be only one clustered index and not more than one?

1009


Explain what stored procedure sp_replcounters is used for? : sql server replication

1527