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!

Numeric oveflow error

S567Nov 3 2019 — edited Nov 13 2019

Hi Team,

I was getting below error when i am executing the below update statement.Please suggest

UPDATE memory

    set Schip = CASE WHEN level=84 THEN round(1000*(exp((column8-39.6383085)/106.7937530)/(1+exp((column8-39.6383085)/106.7937530))),1) 

                         WHEN level=12 THEN round(1000*(exp(column8-69.3524112)/166.0747276)/(1+exp((column8-69.3524112)/166.0747276))),1) END                       

  where level in (84,12);

column is number data type and schip is also number datatype.

I used cast(column8 as number ) instaed of directly column8 but still i got same error.

SQL Error: ORA-01426: numeric overflow

01426. 00000 -  "numeric overflow"

*Cause:    Evaluation of an value expression causes an overflow/underflow.

*Action:   Reduce the operands.

Thanks

Comments
Post Details
Added on Nov 3 2019
7 comments
3,352 views