We read:
The DISTINCT SQL statement is used to indicate that you should work only with unique column values.
The SQL GROUP BY clause is used to combine sample results across one or more columns.
As a result of working with these predicates, we get unique entries by any key. I can not understand what is their difference.
---- Added -----
In my understanding that GROUP BY is a grouping by any sign, and that is, for example, there is a field with values:
1 2 3 1 2 3 after GROUP BY they should be:
1 1 2 2 3 3 but in fact we get:
1 2 3 What is the reason?
group bywe get a tree at the output - BaldSum(),Min(),Max(),...or you can build it yourself ... bypassing the grouping results - Baldgroup byyou can get for example the number of duplicates, or for example the amount of the order consisting of a certain number of items by grouping by order - Bald