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
What is checkpoint in sql server?
How do I start sql server 2016?
What is similarity and difference between truncate and delete in sql?
What is subquery explain with example?
How to set database to be single_user in ms sql server?
What is the difference between writing data to mirrored drives versus raid5 drives
How to convert a unicode strings to non-unicode strings?
What command is used to delete a table from the database in the sql server and how?
explain different types of joins? : Sql server database administration
How to add more data to the testing table in ms sql server?
What is the new security features added in sql server 2014? : sql server security
What is public role in sql server?
How will you monitor replication activity and performance? What privilege do you need to use replication monitor? : sql server replication
How to stop log file growing too big?
can an automatic recovery be initiated by a user? : Sql server administration