write the query for find the top 2 highest salary in sql
server
Answer Posted / santosh kumar
select Top 1 salary from ( select top 2 salary from
emp_table order by salary desc)temptable order by salary
asc.
| Is This Answer Correct ? | 11 Yes | 12 No |
Post New Answer View All Answers
What is full outer join in sql server joins?
Explain having clause?
Explain for xml explicit mode?
What is difference between getdate and sysdatetime in sql server 2008?
What is rs.exe utility?
What is difference between view and materialized view?
How to include date and time values in sql statements?
How to create a large table with random data for index testing in ms sql server?
How can I check that whether automatic statistic update is enabled or not?
How to create a stored procedure with a statement block in ms sql server?
what is a transaction and what are acid properties? : Sql server database administration
What is query processing?
What is the process of normalising?
Explain the difference between control flow and data flow?
How do I find the transaction log size in sql server?