Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Error: 3504 " Selected non-aggregate values must be part of the associated group" - response (1) by dnoeth

$
0
0
OLAP functions are calculated after aggregation, "order by sold_date" fails because there's no more detail row, but why do you need it at all. When you just want a group count, remove it. And the max calculation will not run in any existing RDBMs. And "distinct" is not needed when you do a "group by", both return distinct rows. Remove the OLAP function and try to get your query running using only group by. Dieter

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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