SQL Basic
SQL Advanced
SQL Functions
| SQL sum() |
The SUM() FunctionThe SUM() function returns the total sum of a numeric column. SQL SUM() Syntax
SQL SUM() ExampleWe have the following "Orders" table:
Now we want to find the sum of all "OrderPrice" fields". We use the following SQL statement:
The result-set will look like this:
|
SQL sum()