Add up fields from large table

Options

Hello Xano experts,

I've got a table with many records and each record contains many integer fields. I need to sum up the same fields for all records. So the output has one record of sums for all fields: field_1_sum, field_2_sum, ... field_500_sum.

Adding up through the loop doesn't look feasible. Is there a more elegant way of doing that, e.g. by transforming the objects into arrays and doing "sum" filter for arrays?

Thanks!

Denis


Best Answers

Answers