MySQL SQL

MySQL SUM()

Calculate a numeric total.

SELECT SUM(price) AS inventory_value
FROM products;

SUM() ignores NULL values and returns the total of the remaining numeric values.