Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how do I get the top 80% contributing individuals using pl/sql?

san!Mar 1 2018 — edited Mar 12 2018

Hi All,

Here is a sample table "employee_contribution"

IDNameContribution Amount
1John$10000
2Alex$54541
3Ram$25000
4Scott$5000
5Daniel$2500

From the above table, I need to return the total contribution amount and names of those people who are responsible for top 80% of the contribution using pl/sql logic. I need to write a stored procedure but I am not sure how do it. Please help me with the logic.

Thanks,

Santhosh.

This post has been answered by Sven W. on Mar 1 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 29 2018
Added on Mar 1 2018
3 comments
1,765 views