Lecturer : Damien Kettle Database Administration
Tutorial 3 – Aggregate Functions (AVG, COUNT, MAX, SUM )
Aggregate Functions perform a calculation on a set of values and return for a single value.
AVG
To return the Average Age of the Members in our table write the following select statement and
execute.
Lecturer : Damien Kettle Database Administration
COUNT
To return the number of records we have in our member table write the following select statement
and execute.
Lecturer : Damien Kettle Database Administration
MAX
To return the maximum age from the Members table write the following select statement and
execute.
Lecturer : Damien Kettle Database Administration
SUM
To get the sum of all ages write the following select statement and execute.