Could you guys please let me know that how to wirte a query to get 4th highest salary for each department?
kindly share your valuable views here, so i can proceed further.
Thanks in advance.
select * FROM ( select EmployeeID, Salary deptno ,denserank() over (order by deptno,Salary (DESC) r from Employee ) WHERE r=4
Sign up for STechies
All the site contents are Copyright © www.stechies.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies. The site www.stechies.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity. Information used on this site is at your own risk.
The content on this site may not be reproduced or redistributed without the express written permission of
www.stechies.com or the content authors.