mysql group by id returns multiple rows code example Example: mysql multiple group by GROUP BY col1, col2