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
What are the two modes of authentication in sql server?
What is a data source or ds? : sql server analysis services, ssas
What is data source in connection string?
How many levels of sp nesting is possible?
What are ddl triggers and types of ddl trigger?
What is the purpose of update statistics and scope_identity() function?
What are the requirements on sql server network connections?
How to get @@error and @@rowcount at the same time?
When you should use a low fill factor?
Explain what is lock escalation and what is its purpose?
How to filter records of table in SQL SERVER?
How do I edit a stored procedure in sql server?
Does group by or order by come first?
What is transaction server implicit?
How to see existing views in ms sql server?