Is it possible to GROUP BY multiple columns using MySQL?

Rhys Thought picture Rhys Thought · Dec 3, 2009 · Viewed 347.6k times · Source

Is it possible to GROUP BY more than one column in a MySQL SELECT query? For example:

GROUP BY fV.tier_id AND 'f.form_template_id'

Answer

Joe Phillips picture Joe Phillips · Dec 3, 2009
GROUP BY col1, col2, col3