I\'m running a query in MySQL where I\'m grouping by four columns and selecting a lot of things, including the four values I\'m grouping by. But I get this error when I run
You should put the aliases in the group buy like this:
Create table table2 as Select round(x, 0) as x, round(a, 0) as a, round(b, 0) as b, c, d, e, f from table1 group by x, a, b, c;