portableSql

Sum Portable SQL Function

Syntax

Sum as N (Expression as N)

Arguments

ExpressionNumeric

A field or expression.

Returns

resultNumeric

Returns the sum of the expression over all rows.

Description

Compute the sum of the expression over all rows.

Discussion

The Sum function computes the sum of the expression over all rows.

Sum() function executed on the Northwind Access database
SELECT Sum(Order_Details.UnitPrice * Order_Details.Quantity) AS TotalPreDiscount FROM [Order Details] Order_Details
=1354458.59