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 difference between rownum and rowid?

513


What is a view and what are its advantages?

694


What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?

497


What is the difference between a function and a trigger?

579


What is the recursive stored procedure in sql server?

530






What are dml triggers and types of dml triggers?

555


What are the differences between char and varchar in ms sql server?

583


How do I repair damaged sql server mdf file database? In previous day my mdf file has got damage due to unknown reasons then I used dbcc chekcdb command but it failed, MDF file is important for me, I don’ know that how to get back mdf file data. Please anyone suggest me?

1303


Explain activity monitors

628


If the job running very slow what is the action you do

1429


How to set a database state to offline in ms sql server?

543


State the difference between union and union all?

523


Mention the differences between having and where clause.

561


What is filestream?

562


can a database be shrunk to 0 bytes, if not, why? : Sql server administration

615