Get average value for a column

db:avg(STRING $table, STRING $column, ARRAY $where=[ ]) : FLOAT

db:avg('users', 'account_type', [])
#=> 1.75

Copyright ©2013-2022 SunSed®. All rights reserved.