AVG (expression)

Returns the average of the values in a group. Null values are ignored.

Syntax:

AVG ( expression )

Example:

SELECT AVG(VacationTime)AS 'Average vacation time in hours',
SUM(SickLeave) AS 'Total sick leave time in hours'
FROM HR.Employee
WHERE JobTitle LIKE 'Vice Admiral%'
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.