write query for fourth maximum salary from employee table

Answer Posted / dharmendra k. dixit

For Finding Nth Salary...

SELECT TOP 1 Salary FROM
(SELECT TOP nth Salary FROM Table Order by Salary Desc)Table
As Sal Order by Salary

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rank function?

785


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?

677


What is an indexing technique?

666


Explain what are magic tables in sql server?

696


Can you create a logon trigger in sql server 2005 express edition?

787






What is the osql utility?

723


Does full backup break log chain?

729


What is filestream?

739


Why truncate is ddl command?

710


what are questions asked in TCS for database tester (sqlserver)for 2-3 exp?

5673


How to send a ssrs report from ssis?

151


How to change parameter value inside the report?

131


Explain system rowset functions?

736


What the different components of Replication and what is their use?

759


What are the differences between triggers and stored procedures?

722