I can't find here: http://framework.zend.com/manual/en/zend.db.select.html any reference to SUM using mysql.
How can we perform a simple:
SELECT SUM(mark) as total_mark FROM `student`
Using Zend_Db_Table_Abstract ?
Tried:
this->select(SUM ('myintcolumn'))->from('mytable');
No luck. :(
Thanks, MEM
did you try
this->select()->from('mytable', array('sum(myintcolumn) as sum'));