write the query for find the top 2 highest salary in sql
server
Answer Posted / krishna
select * from emp e where 2>(select count(esal) from emp
where e.esal<=esal)
| Is This Answer Correct ? | 3 Yes | 7 No |
Post New Answer View All Answers
What is the native system stored procedure to execute a command against all databases?
Why use update_statistics command in sql server?
How many types of stored procedures are there in sql server?
What is optimization and its types?
How to implement service broker?
What are the restrictions that views have to follow?
List the types of recovery model available in sql server?
What are the various Operating system files that every SQL server 2005 database has and what is the purpose.
What are the encryption mechanisms in sql server?
What is the difference between Triggers and Stored Procedure?
How do you troubleshoot errors in a SQL Server Agent Job?
What is log in sql server?
What have included columns when we talk about sql server indexing?
How to get a list of columns in a view using the "sp_help" stored procedure?
How to apply cascading referential integrity in place of triggers?