Hi,
I am trying to create such a select in Cake:

SELECT Month(er.`date`),Year(er.`date`), SUM(er.`value`),
er.`position` FROM expense_revenues er
where er.`firm_id` = 2
group by 2, 1, 4;

how to use SQL functions inside fields ????

Roman

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to