bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MS Access Sum() Function

Concept visual

MS Access Sum() Function

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Example

Return the sum of the "Quantity" field in the "OrderDetails" table:

SELECT Sum(Quantity) AS TotalItemsOrdered FROM OrderDetails;

Definition and Usage

The Sum() function calculates the sum of a set of values.

Note:

NULL values are ignored.

Syntax

Sum(

expression )

Parameter Values

Parameter

Description expression

Required. A field or a formula

Technical Details

Works in:

From Access 2000

Previous

❮ MS Access Functions

Next

Previous

MS Access Sqr() Function

Next

MS Access Val() Function