How to write procedure in oracle database
Declare procedure verifyPointOutStandingByTcbsId ( tcbsid_in IN varchar2 ) is sumOfCreditPointRedem number ; sumOfDebitPointRedem number ; resultRedem number ; currentBalanceRedem number ; sumOfCreditPointRank number ; sumOfDebitPointRank number ; resultRank number ; currentBalanceRank number ; begin -- dbms_output.PUT_LINE('verifying this tcbsid: ' || tcbsid_in); select sum ( POINT ) into sumOfDebitPointRedem from IXU_TRANSACTION_HISTORY where ACTION = 'Debit' and AWARD_TYPE = 'Redeemable' and TCBSID = tcbsid_in ; select sum ( POINT ) into sumOfDebitPointRank from IXU_TRANSACTION_HISTORY where ACTION = 'Debit' and AWARD_TYPE = 'Ranking' and TCBSID = tcbsid_in ; select sum ( POINT ) into sumOfCreditPointRedem from IXU_TRANSACTION_HISTORY where ACTION = 'Credit' and AWARD_TYPE = 'Redeem...