write the query for find the top 2 highest salary in sql
server

Answer Posted / kapil singh chauhan

select * from
(select ID,Salary from employee order by Salary desc)
where rownum < 3

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the simplest way to create a new database in ms sql server?

523


What are the types of database schema? : sql server analysis services, ssas

595


Explain about protocol layer present in SQL server?

602


how to restart sql server in single user mode? How to start sql server in minimal configuration mode? : Sql server database administration

451


What are rest-style architecture's?

149






how many bits ip address consist of? : Sql server database administration

444


What is the use of for clause?

571


What is table-valued sub query?

555


What is difference between temp table and cte?

523


Write a sql query to display the current date?

617


As a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this?

611


What are the properties of sub-query?

570


What does this statement do @@rowcount?

541


How do I schedule a sql server profiler trace?

532


What is difference between views and tables?

457