Finding Nth Highest Salary of an Employee

-- Find nth highest salary of an employee


1)  Using Corelated Subquery
select * from Emp e1 where 1= (select count(distinct(e2.sal)) from Emp e2 where e2.sal>e1.sal);

2)  Using Rownum
select * from (select e.*, row_number() over(order by sal desc) rownumb from Emp e where sal is not null) where rownumb=3;

3) Using Rank
select * from (select e.*, rank() over(order by sal desc) ranking from Emp e where sal is not null) where ranking =2;

Comments

  1. this article nice ,this information is very useful to me and our company OracleAppsTechnicalOnlineTraining

    ReplyDelete
  2. Thanks for sharing these information. It’s a very nice topic. We are providing online training classesOracleAppsTechnicalOnlineTraining

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Nice information.You can also find more information on Oracle apps technical
    Oracle APPS techno Functional Tutorials

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Usually I do not read post on blogs, but I would like to say that this write-up very forced me to try and do it! Your writing style has been surprised me. Great work admin..Keep update more blog..

    Best Web development company in Chennai

    ReplyDelete
  7. Nice thing and even salary will be the prior thing to be mind and also to develop their working intention. Thereby satisfying through their needs by the organisation.
    Back to original

    ReplyDelete
  8. Nice Blog

    Install Oracle Appsr12 Dump For Better Practice

    https://www.olx.in/item/install-oracle-appsr12-dump-at-500-only-ID1bqZlz.html

    ReplyDelete
  9. Great post!I am actually getting ready to across this information,i am very happy to this commands.Also great blog here with all of the valuable information you have.Well done,its a great knowledge. ..
    SAP FICO Training in Chennai

    ReplyDelete
  10. Thanks for the informative article.This is one of the best resources I have found in quite some time.Nicely written and great info.I really cannot thank you enough for sharing.

    Herbalife in Chennai
    Wellnesscentres in Chennai
    Weight Loss in Chennai
    Weight Gain in Chennai

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. As usual, great post. You keep amazing me with your content design and layout. And thanks for sharing this awesome piece. Also, check out now Microsoft Gift Card

    ReplyDelete
  14. Here is the investors contact Email details,lfdsloans@outlook.com.  Or Whatsapp +1 989-394-3740 that helped me with loan of 90,000.00 Euros to startup my business and I'm very grateful,It was really hard on me here trying to make a way as a single mother things hasn't be easy with me but with the help of Le_Meridian put smile on my face as i watch my business growing stronger and expanding as well.I know you may surprise why me putting things like this here but i really have to express my gratitude so anyone seeking for financial help or going through hardship with there business or want to startup business project can see to this and have hope of getting out of the hardship..Thank You.

    ReplyDelete

  15. BEST WAY TO HAVE GOOD AMOUNT TO START A GOOD BUSINESS or TO START LIVING A GOOD LIFE….. Hack and take money directly from any ATM Machine Vault with the use of ATM Programmed Card which runs in automatic mode. email (williamshackers@hotmail.com) for how to get it and its cost . ………. EXPLANATION OF HOW THESE CARD WORKS………. You just slot in these card into any ATM Machine and it will automatically bring up a MENU of 1st VAULT $1,000, 2nd VAULT $2,000, RE-PROGRAMMED, EXIT, CANCEL. Just click on either of the VAULTS, and it will take you to another SUB-MENU of ALL, OTHERS, EXIT, CANCEL. Just click on others and type in the amount you wish to withdraw from the ATM and you have it cashed instantly… Done. ***NOTE: DON’T EVER MAKE THE MISTAKE OF CLICKING THE “ALL” OPTION. BECAUSE IT WILL TAKE OUT ALL THE AMOUNT OF THE SELECTED VAULT. email (williamshackers@hotmail.com) We are located in USA.

    ReplyDelete
  16. Thanks for this blog. It really provides awesome information to all readers. keep it up and keep posting these types of blogs on digital marketing services, it's really helpful.
    inventory management firm

    ReplyDelete
  17. I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.
    IBM Training in Bangalore

    ReplyDelete
  18. I really appreciate your support on this.
    Look forward to hearing from you soon.
    I’m happy to answer your questions, if you have any.


    คาสิโนออนไลน์

    เล่นบาคาร่า

    คาสิโนออนไลน์

    ReplyDelete
  19. I read your blog regularly, and I find every entry to be informative and interesting. Continue your excellent work!
    Gigolo Near Me

    ReplyDelete

Post a Comment

Popular posts from this blog

Oracle Purchasing Module Step by Step in R12

Sub Ledger Accounting SLA (Complete Functional Information)

Difference between ATO and PTO in oracle apps