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
What is explicit cursors?
What is an execution plan? How would you view the execution plan?
What are different backups available in sql server?
How can you list all the columns in a database?
Explain transaction server auto commit?
what are different types of backups available in sql server? : Sql server database administration
What is a full text index?
Where are SQL server users names and passwords are stored in sql server?
What is the purpose of data source?
What is the difference between grant and with grant while giving permissions to the user?
How to verify a user name with sqlcmd tool?
What happens if date-only values are provided as date and time literals?
What is the downside of using udf?
What are the advantages of the mirroring?
Explain transaction server distributed transaction?