write the query for find the top 2 highest salary in sql
server
Answer Posted / adiseshu
select * from (
select dense_rank() over (order by salary desc) rno,* from
employees ) as a where rno in(1,2)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you Implement SSIS Packages in your Project?
What does it mean to invest in the index?
What is the default schema of your login session in ms sql server?
How to create a new login name in ms sql server?
What is log shipping? Can we do logshipping with SQL Server 7.0 ?
Explain what are various ways to enhance the ssrs report?
What is function of ROLLUP ?
How to use order by with union operators in ms sql server?
What is in place upgrade in sql server?
What stored by the model?
What do you mean by subquery?
What are the extra roles available in msdb? : sql server security
What is attribute? : sql server analysis services, ssas
What is the use of sign function?
What are Row versions of DataRow?