Friday, June 1, 2012

Best approach for handling group by query

Hi,
I'm planning to add a group by to an index action (like by date('F Y') )
The query could be a first one to find out the groups then loop the
results to create subqueries for the single group.
Then I would move the main table in index view to an element and then
loop the groups => records list (but maybe I could either use the new
views blocks instead).

Has anyone a suggestion for a good way to query/show grouped records?

Thanks, Luca

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: