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
Does view occupy space?
What is subquery? Explain the properties of a subquery?
Difference between report and query parameter. Why do we need different type of parameter?
What is change data capture (cdc) feature?
Why SQL Agent is used?
Can you roll back the ddl statement in a trigger?
What it means to be triggered?
What is the difference between functions and scalar functions?
What is difference between group by and having?
What is the full form of ddl?
How to get the definition of a stored procedure back?
Tell me what is use of except clause? How it differs from not in clause?
What is etl - extraction, transformation, and loading?
How to return the top 5 rows from a select query in ms sql server?
Write down the syntax and an example for create, rename and delete index?