Reputation: 21
I have table with 500+ rows and I want to sum all the values in a column.
Example:
name | number
----------------
name1 | 25
name2 | 10
name3 | 5
name4 | 20
The total sum is: 60
I can do that via PHP but is this possible using an SQL query?
Upvotes: 1
Views: 1778