db_sum

Initialize a query builder to perform a SUM query on the database

Parameters
string $table

The table name

#
string $field

The field name to find sum

#
string $alias = null

The optional field alias; defaults to "sum"

#
Returns
object

QueryBuilder