average(column_name, options = {})
Instance Public methods
Calculates the average value on a given column. Returns nil
if
there's no row. See calculate
for examples with options.
1 | Person.average( :age ) # => 35.8 |
Calculates the average value on a given column. Returns nil
if
there's no row. See calculate
for examples with options.
1 | Person.average( :age ) # => 35.8 |
Designed by : w10schools
service@w10schools.com
Please login to continue.