Yes. In MySQL, we can group by multiple columns.
Check out the below example,
SELECT * FROM table
GROUP BY col1, col2
The result will be initially grouped by col1, and then by col2. Also In MySQL, the column preference goes from left to the right.
Start your SQL career with the perfect SQL Training Course now!