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
desc.
Is This Answer Correct ? | 13 Yes | 14 No |
Post New Answer View All Answers
How to create a large table with random data for index testing in ms sql server?
What is the order in which the sql query is executed?
Explain the difference between HTTP and HTTPS in database?
Define ACID properties in a Database?
what's the difference between delete table and truncate table commands? : Sql server database administration
What do you understand by SQL*Net?
What is the order by used for?
how would you store your query in an SSRS report or a Database server?
Are resultset updatable?
What is report rendering ?
Your table has a large character field there are queries that use this field in their search clause what should you do?
what's new in sql server 2016?
Does a specific recovery model need to be used for a replicated database? : sql server replication
What is a partition function in sql server?
What is sql profiler. What are the default templates with it? : sql server database administration