ServiceBreez Posted November 26, 2020 Report Share Posted November 26, 2020 Is there a solution to saving an aggregate value in a table? Quote Link to comment Share on other sites More sharing options...
0 sandy159 Posted November 26, 2020 Report Share Posted November 26, 2020 Hello @ServiceBreez, I had the same question but discovered that it is not possible to save aggregation values from the DataPage in the table. As a workaround, it is possible to create an Application Task or Trigger that will calculate the SUM, for example, and insert/update it in the table. You may find the following forums posts helpful: Feel free to update this thread if you have further questions. Regards Quote Link to comment Share on other sites More sharing options...
0 cheonsa Posted March 26, 2021 Report Share Posted March 26, 2021 You can also check this howto document for more details about Trigger: https://howto.caspio.com/tables-and-views/triggered-actions/ Quote Link to comment Share on other sites More sharing options...
0 RuisiHansamu Posted January 21 Report Share Posted January 21 it seems that this error occurs when you are trying to set one of your columns using the UPDATE statement with a value that uses an aggregate functions such as the SUM, MAX, or MIN. Therefore, it is not valid because in SQL it is impossible to use aggregate functions in update SET list. With this, you may try to do a use case is to add a so-called subquery (SELECT statement) and use this subquery in a JOIN. For more information,I have found a forunm post that is similar to your workflow. You may check this link as a reference: https://forums.caspio.com/topic/32756-task-to-update-the-parent-table-with-aggregated-values-from-the-child-table/?do=findComment&comment=83154 Quote Link to comment Share on other sites More sharing options...
Question
ServiceBreez
Is there a solution to saving an aggregate value in a table?
Link to comment
Share on other sites
3 answers 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.