Group By Aggregate Functions In SQL
· Look, we put NonAggregated attributes with GROUP BY. Now, when this query runs, it will collect the same number of Customer IDs and then take the average of all the column values of Customer Id 2 in the Invoice table. This is how it works. Now, let's suppose we've another attribute name in the script.