Alphabetical list of functions
Returns the total of the specified expression for each group of rows.
SUM ( expression | DISTINCT column-name )
expression The object to be summed. This is commonly a column name.
DISTINCT column-name This is of limited usefulness, but is included for completeness.
Rows where the specified expression is NULL are not included.
Returns NULL for a group containing no rows.
SQL/92 SQL/92 compatible.
SQL/99 Core feature.
Sybase Compatible with Adaptive Server Enterprise.
The following statement returns the value 3749146.
SELECT SUM( salary ) FROM Employee
SQL Anywhere Studio 9.0.2
Copyright © 1989–2004 Sybase, Inc. Portions copyright © 2001–2004 iAnywhere Solutions, Inc. All rights reserved.