You need to sign in to do that
Don't have an account?

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
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.