I have a problem with my data in the table. For example, I have three table as describe as the following:
This is my script to do all of these tables.
Procedure 2 Create or Replace procedure updateReceipt (payment number(19,4)) is begin update Receipt set balance=balance+payment where receiptID=...; end;
Procedure 2 Create or Replace procedure studentPayment ( stuID int, stuName varchar2, payment number(19,4), classID int )
is
begin insert into student(...) values(...);
insert into class(...) values(....);
updateReceipt(payment); end;
My question is, when I do query sum(balance) in table receipt, sometime right, sometime over and less. I don't know why this table (receipt) update balance or not?
Could anybody help me to settle this problem? Urgent question!!!!!
Sopolin