Home
SQL / MySQL
Aggregate Functions
Backup Load
Command MySQL
Cursor
Data Type
Database
Date Time
Engine
Event
Flow Control
FullText Search
Function
Geometric
I18N
Insert Delete Update
Join
Key
Math
Procedure Function
Regular Expression
Select Clause
String
Table Index
Transaction
Trigger
User Permission
View
Where Clause
XML
SUM « Aggregate Functions « SQL / MySQL
SQL / MySQL
Aggregate Functions
SUM
1.
SUM() function returns the sum of the expression.
2.
SUM() the commission
3.
Sum by group
4.
Some aggregate functions can still produce NULL as a result.
5.
What is the total amount of mail traffic and the average size of each message?
6.
What is the total population of the United States?
7.
Summaries and NULL Values
8.
To determine how many drivers were on the road and how many miles were driven each day
9.
Finding Smallest or Largest Summary Values
10.
The number of votes for each programming language is determined with SUM(IF(...))
11.
To compute the runner's average speed at the end of each stage