write query for fourth maximum salary from employee table

Answer Posted / raman

select top 1(esal) from (select top 2(esal) from employee order by esal desc) employee order by esal asc

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the federation in sql azure?

91


How do you improve the performance of a SQL Azure Database?

129


Explain ranking functions?

778


How to modify an existing user defined function?

769


Define self join in sql server joins?

692






Explain the disadvantages of cursors?

761


What is a document index?

768


Explain what is analysis service repository?

708


How will you decide the active and passive nodes?

786


How to Check if table exists in sql server?

784


What is the use of sql profiler in sql server 2012?

660


What do you understand by replication in sql server? Mention the different types of replication in sql server.

694


What are the differences between lost updates and uncommitted dependencies?

747


you have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation? : Sql server administration

705


What is the difference between a function and a trigger?

766