AVG
Syntax
AVG ( { [ALL] expression } | { DISTINCT column_ref } )
Description
The aggregate function AVG computes the average of a collection of values. The keyword DISTINCT specifies that the duplicate values are to be eliminated before computing the average.
Example
SELECT AVG (salary)
FROM employee
WHERE deptno = 20 ;