db_avg

Initialize a query builder to perform an AVG query on the database

Parameters
string $table

The table name

#
string $field

The field name to find average

#
string $alias = null

The optional field alias; defaults to "avg"

#
Returns
object

QueryBuilder