SQL SUM() Example The following SQL statement finds the sum of all the "Quantity" fields for the "OrderDetails" table:
www.w3schools.com