Hi Roman,

Have you already read this?
http://manual.cakephp.org/view/74/Complex-Find-Conditions

Anja

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[EMAIL PROTECTED] Im Auftrag von Roman
Gesendet: Freitag, 7. November 2008 10:53
An: CakePHP
Betreff: Is it possible in CakePHP ???


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