write the query for find the top 2 highest salary in sql
server
Answer Posted / nilesh
select * from employee2 e where 2=(select count(distinct salary) from employee2
where e.salary<=salary)
Its working.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is normalization and what are the advantages of it?
What are scheduled tasks in sql server?
What are unicode character string data types in ms sql server?
What are some of the pros and cons of not dropping the sql server builtinadministrators group? : sql server security
What is the index requirement in SQL Azure?
How to use clusters?
How do I completely remove sql server instance?
What is SQL Azure?
Give an example of SQL injection attack ?
What is page-level compression?
Can we insert data if clustered index is disabled?
Tell me about pre-defined functions of sql?
what are the reporting service components in SSRS?
Who developed sql server?
What are the diifferences between the ms sql server vs mysql?