SUM Function in MySQL
How to Use the SUM Function in MySQL?
Explanation
SUM Function
SUM Function returns the sum of all values in an expression. Returns NULL if no matching rows are found.
Syntax:
sum()
Consider an example of an employee table
Example: