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 rs.exe utility?
What is a transactions?
What are commonly used mssql functions in php?
What xml support does the sql server extend?
List types of tables in SQL Azure?
Is sql server difficult to learn?
Explain what are the database objects? : SQL Server Architecture
How to use union to merge outputs from two queries together in ms sql server?
What are information schema views?
What are the differences between stored procedure and view in sql server?
Mention the 3 ways to get a count of the number of records in a table.
Define magic tables in sql server?
Explain what stored procedure sp_replcounters is used for? : sql server replication
What are alternate keys?
When multiple after triggers are attached to sql table, how to control the order of execution?