GROUP BY clause can be used to segment data into groups and apply
aggregate functions over the values within
each group. Aggregation functions applied to data without a GROUP BY clause
will be applied over the entire result set.
GROUP BY can operate on columns, column expressions, column
aliases, or the position of a member of the SELECT clause (where
1 is the first element).Aggregation without GROUP BY Example
Aggregate with GROUP BY Example