Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Syntax

GROUPAVERAGE(<number>)

Description

Returns the average value of a group by creating a sum for all values in the group and dividing by the number of values. A GROUPBY() function must first be used in order to then find the average arguments of another column in relation to it. The value of the GROUPAVERAGE() must be a number and is returned as a float

Empty or <null> records of a group aren't calculated into GROUPAVERAGE().

...

user_time_zoneGROUPAVERAGE returns
Alaska27
Central Time (US & Canada)166.6666667
London162
Melbourne<error>
Pacific Time (US & Canada)4800.666667
Sydney27