how to sum up and avg data
Posted 27 July 2009 - 07:56 PM
How can I get the average of certain fields? thanks
Posted 28 July 2009 - 02:31 AM
AFAIK you have to pass MAX(column_name) into select attribute if you want ot achieve max value, AVG(column_name) for average and so one...
Posted 01 August 2009 - 09:53 PM
"select avg() as average", still nothing got returned when I print_r the returned object.
Do I need to define a property in the model for average value? I don't understand your explaination
Posted 29 November 2011 - 11:58 AM
'select' => 'AVG(FIELD)',
It should be really easy to do it like this.
MSc. Cristian Tala Sánchez