write query for fourth maximum salary from employee table

Answer Posted / pramod

Select Top 1 (Salary) from emp where salary not in
(select Top 3 (Salary) from emp order by salary desc)
order by salary desc

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the types of indexes.

643


Why can there be only one clustered index and not more than one?

550


How will you add a dimension to cube? : sql server analysis services, ssas

558


What are the different types of collation sensitivity?

559


What is create statement?

534






how to create a scrollable cursor with the scroll option? : Sql server database administration

615


What are relationships and mention different types of relationships in the dbms

564


Explain different types of BACKUPs avaialabe in SQL Server? Given a particular scenario, how would you go about choosing a backup plan?

584


What are the different acid properties?

629


Is it possible in sql table to have more than one foreign key?

618


What are the export options of ssrs?

126


How to rename an existing column with the "sp_rename" stored procedure in ms sql server?

556


What command do we use to rename a database?

620


What are the differences between union, intersect, and minus operators?

578


Can a unique index be created on a column, which contains null?

526