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
How can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role?
What is a covered index?
Can a function call a stored procedure in sql server?
How do I start and stop sql server?
Explain in details security in SQL azure?
what is the main function of a query parameter?
How do you create type- insensitive operator?
What is trigger explain with program?
What is the beast way to write CTE in SQL Server ?
How can we delete a table in sql server?
How many null values we can have in a unique key field in sql server?
What is plan freezing?
What is store procedure? How do they work?
How can you list all the columns in a database?
Can binary strings be converted into numeric or float data types?