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

Select Failed: 3504: Selected non_aggregate values must be part of the associated group - response (2) by Qaisar Aftab Kiani

$
0
0

You are not using any aggregate function in your SELECT clause & on top of that you are already doing DISTINCT alongwith GROUP BY clause (both of which has the same impact)
You can solve the error by either removing the GROUP BY clause altogether or mention all the columns in the GROUP BY caluse (and removing the DISTINCT in select clause)...


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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