If you’ve been using MySQL for any decent amount of time, it’s likely you’ll be familiar with error 1055 that reads something like “Expression #N of SELECT list is not in GROUP BY clause and contains nonaggregated column…“, where #N
is the expression number of an expression/column in your SELECT
list.
This error can occur when we include a column in the SELECT
list, but we omit it from the GROUP BY
clause.
There are several ways we can go about resolving this issue. Below are six options for dealing with this issue.
Continue reading