sum

Gets the sum of a field.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
    X    

Syntax

numeric sum(field)
ident       field

Description

Returns sum of specified field. Valid only on numeric database fields.
field specifies the field to sum.

Example

Gets the current sum of salaries.
sum_sal = sum(SAL);