Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

selected non-aggregate values must be part of the associated group - response (3) by dnoeth

$
0
0

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


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>