SQL SUM() Function
The SUM() function returns the total sum of a numeric column.
Example
Return the sum of all Quantity fields in the OrderDetails table:
SELECT SUM(Quantity)
FROM OrderDetails;
Video Explanation

Syntax
SELECT SUM(_column_name_) FROM _table_name_ WHERE _condition_;
Demo Database
Below is a selection from the OrderDetails table used in the examples:
| OrderDetailID | OrderID | ProductID | Quantity |
|---|---|---|---|
| 1 | 10248 | 11 | 12 |
| 2 | 10248 | 42 | 10 |
| 3 | 10248 | 72 | 5 |
| 4 | 10249 | 14 | 9 |
| 5 | 10249 | 51 | 40 |