find the 3rd max salary

Answer Posted / cpnagar

SELECT salary FROM (SELECT ROW_NUMBER() OVER (ORDER BY
salary desc) AS RN,*
FROM
emp)temp
WHERE
RN=3

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between nvl and nvl2?

556


Tell me when is the update_statistics command used?

516


What is delete query?

526


When to use Inner join & when to use subquery?

581


Please illustrate physical database architecture? : SQL Server Architecture

539






Can we hide the definition of a stored procedure from a use?

656


optimization techinques

2202


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

584


Explain trigger and its types?

618


What do you understand by check constraint in sql server?

486


Explain datetimeoffset data type in sal server 2008?

546


Explain full-text query in sql server?

542


What is checkpoint process in the sql server?

551


Can two tables share the same primary key?

513


what is database replication? : Sql server database administration

537