Yo're right, whenever there's an aggregation all other columns must be in GROUP BY.
MySQL considers some bad practice as valid SQL, but all other DBMSes consider that illegal :-)
What does MySQL return? A random productcategory? Or the same as GROUP BY 1?
Dieter
Yo're right, whenever there's an aggregation all other columns must be in GROUP BY.
MySQL considers some bad practice as valid SQL, but all other DBMSes consider that illegal :-)
What does MySQL return? A random productcategory? Or the same as GROUP BY 1?
Dieter