Friday, August 2, 2019

How to display the 3rd highest salary in the employee table?

SELECT *
  FROM (SELECT ename, sal, DENSE_RANK () OVER (ORDER BY sal DESC) r
          FROM emp)
 WHERE r = 3

No comments:

Post a Comment

AME (Approval Management Engine)

AME (Approval Management Engine) : AME Stands for Oracle Approval Management Engine. AME is a self service web application that enables...