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!

Percentage in SQL Where Condition

ponicpoolOct 31 2017 — edited Oct 31 2017

Hello,

I have a doubt regarding percentage

I need to fetch only those rows where the amount paid is less than 95 percent.

E.g. 

Total Value      Amont_Paid

937804           396902

453580           734561

if the amount paid 95% of the total amount, then I should fetch the records.

I have tried as

SELECT  * from my_table

where amount_paid  <  (amount_paid*.95%)

This did not get the correct results.

Appreciate if some could provide some insight.

This post has been answered by Prodipto Tokder on Oct 31 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 28 2017
Added on Oct 31 2017
6 comments
752 views