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
Define self join?
How can we get count of the number of records in a table?
Describe and explain about SQL native client?
What are the difference between “where” and “having” clause in sql server?
What is difference between rownum and row_number?
Can you roll back the ddl statement in a trigger?
What is data modification?
Do you know what is xpath?
What is create statement?
Types of Authentications in Sql Server? How user gets authenticated through windows authentication?
Can we run Reporting Services with SQL Server express edition, which is a free version of SQL Server?
In what version of sql server were synonyms released?
Differentiate sql server reporting services vs. Crystal reports?
What are orphan records?
What is the sql server agent?