Skip to Main Content

Oracle Database Discussions

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!

I am storing amounts in my nested table. how do i sum them up?is it possible to do it without loopin

3752786Jul 9 2019 — edited Jul 10 2019

Hi,

I am storing amounts in my nested table. how do i sum them up?is it possible to do it without looping?

<code>

declare

Type DlrLgrRecType is Record(

    debit_amt                   NUMBER(12,2),

    credit_amt                  NUMBER(12,2),   -- i want to sum up all the values stored in the pl sql table

    balance_amt                 NUMBER(12,2) -- i want to sum up all the balance_amt stored in the pl sql table

);

Type DlrLgrTabType is table of DlrLgrRecType;

</code>

Comments
Post Details
Added on Jul 9 2019
5 comments
578 views