MiCro Posted April 24, 2019 Report Share Posted April 24, 2019 I am new so please excuse my SQL ignorance: My trigger is working, EXCEPT for the fact that it is NOT INCLUDING the most recently inserted value in the CommentHRS field in the sum (CA_TOTALhrs). Trying to be clear here: It's properly calculating the SUM on the insert event, but just not including the newly inserted value as part of the sum. (The actions with the red X work fine. No problems there.) Why would it not include the value that was just inserted in the SUM? Thanks. Mike Quote Link to comment Share on other sites More sharing options...
0 Glitch Posted April 24, 2019 Report Share Posted April 24, 2019 You should add the sum to the inserted Value. Reading the trigger, You are only summing up the CommentHRS. Meaning to say, the inserted one is still excluded, since you are still on the process of inserting the Data. I hope this helps. MiCro 1 Quote Link to comment Share on other sites More sharing options...
Question
MiCro
I am new so please excuse my SQL ignorance:
My trigger is working, EXCEPT for the fact that it is NOT INCLUDING the most recently inserted value in the CommentHRS field in the sum (CA_TOTALhrs).
Trying to be clear here: It's properly calculating the SUM on the insert event, but just not including the newly inserted value as part of the sum.
(The actions with the red X work fine. No problems there.) Why would it not include the value that was just inserted in the SUM?
Thanks. Mike
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.