Very much not Perl. A better place to ask this question is http://forums.devshed.com/
I don't actually know the answer to your question. I've only had to write queries with only one field in the group by clause.
If you're using MySQL this may help http://dev.mysql.com/doc/mysql/en/group-by-optimization.html
In reply to Re: SQL GROUP BY Clause
by xorl
in thread SQL GROUP BY Clause
by lex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |