SQL SUM Function
SQL > SQL Functions >
The SUM function is used to calculate the total for a column. The syntax is,
For example, if we want to get the sum of all sales from the following table,
we would type in,
SELECT SUM(Sales) FROM Store_Information;
2750 represents the sum of all Sales entries: 1500 + 250 + 300 + 700.