Max by Group
Class->max_group_by()
Like the countgroupby method, you can select objects from a MT::Object store using a SQL 'MAX' operator.
my $iter = MT::Foo->max_group_by($terms, {%args, group => $group_exprs,
max => 'column_name' })
This page is part of the MT::Object Reference
- Previous Averaging by Group
This page was last updated on 2008-10-01, 17:07.
Leave a note
Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.