Sum

From Catglobe Wiki
Revision as of 10:06, 7 March 2011 by 127.0.0.1 (talk | contribs) (jrfconvert import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



sum

Returns the sum of all row values for a column.

Syntax

sum(columnName)

Arguments

columnName: Is the name of a column in the data table.

Return type

number

Examples

//calculate the sum of ClassBudget, class 1 has

number s = sum(ClassBudget) where (ClassId == 1);

Availability

Version 4.8