write the query for find the top 2 highest salary in sql
server
Answer Posted / suhail qaiser
or if u want 2nd highest then write this query
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 ? | 29 Yes | 24 No |
Post New Answer View All Answers
Name few endpoints exposed by ssrs 2012?
How display code or Text of Stored Procedure using Sql query in Sql Server ?
Explain the difference between control flow and data flow?
We are updating a field in sql and alter the row also.after giving the commit command the system is crashed.what will happen to the commands given,whether it will update and alter the table or not?
How to drop existing indexes in ms sql server?
What is report snapshot in ssrs?
What is sql server agent and what are the two modes of authentication in sql server?
What is indexed view?
Can we deploy SSRS reports on our personal website?
What are the different Topologies in which Replication can be configured?
Differentiate between a local and a global temporary table?
What is merge join?
Are null values the same as that of zero or a blank space?
Define Wed Edition in SQL Azure?
What is use of except clause? How does it differ from not in clause?