calculate(operation, column_name, options = {})
Instance Public methods
This calculates aggregate values in the given column. Methods for count,
sum, average, minimum, and maximum have been added as shortcuts.
There are two basic forms of output:
* Single aggregate value: The single value is type cast to Fixnum for COUNT, Float
for AVG, and the given column's type for everything else.
* Grouped values: This returns an ordered hash of the values and groups them. It
takes either