Re: Calculation from time stamps through to amount due
> set new amount_due = (elapsed * rate)'
> throws an error.
And we mayn't know what that error message says!?
> how to "check for elapsed" before doing the next calculation
A Trigger can't do a raw Select, so set user variables to the values you are tracking, and after the Trigger has run, select the user vars to see what they contain.
The Trigger has no control over column values delivered to it, so your code has to handle the possibility of Nulls and outlandish values.
Subject
Views
Written By
Posted
1697
September 02, 2016 07:35PM
850
September 02, 2016 09:26PM
832
September 03, 2016 06:42PM
817
September 03, 2016 06:51PM
Re: Calculation from time stamps through to amount due
855
September 03, 2016 07:23PM
974
September 03, 2016 08:01PM
842
September 04, 2016 12:01PM
888
September 04, 2016 01:29PM
980
September 04, 2016 01:42PM
876
September 04, 2016 04:45PM
862
September 04, 2016 04:53PM
916
September 04, 2016 07:32PM
904
September 04, 2016 09:30PM
888
September 05, 2016 02:46PM
905
September 05, 2016 04:10PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.