function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AnicheAniche 

SOQL using sum()

Hi, Can somebody help me with a simple sum() function in SOQL , I tried to search on the net a lot but in vain. Just need to do a sum of a particular field from accounts Thanks Anish
SuperfellSuperfell
There is no sum in SOQL (or any other aggregate functions). you'll need to loop over the query result rows and calculate the sum yourself.