0

GROUP BY

What is the diference between GROUP BY and DISTINCT?

16th Feb 2017, 6:38 PM
Ondra
Ondra - avatar
2 odpowiedzi
+ 3
with GROUP BY you can use aggregate functions like SUM or AVG.
16th Feb 2017, 8:00 PM
Ivan Terenkovskiy
Ivan Terenkovskiy - avatar
0
example select distinct shows you unique values while group by statment is used in conjuction with the aggregate functions to group the results by one or more columns
17th Feb 2017, 6:34 PM
Nemanja Jovanović
Nemanja Jovanović - avatar