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 are secondary xml indexes?

562


What are the advantages of user defined function?

490


What are cursors stored procedures and triggers?

512


what are triggers? : Sql server database administration

495


Can you explain powershell included in sql server 2008?

502






What is the cartesian product of the table?

544


How can you set the threshold at which sql server will generate keysets asynchronously?

561


When would you use the stored procedures or functions?

571


What are the grouping functions?

523


What are subqueries in sql server?

589


What is tabulation?

553


Explain filestream storage of sql server 2008?

513


What are the advantages dts has over bcp?

524


Why transaction is important?

561


How to replace the Query Result 'Null Value' with a text ?

558