A Brief Tutorial Group by is one of the most frequently used SQL clauses. It allows you to collapse a field into its distinct values. This clause is most often used with aggregations to show one value per grouped field or combination of fields. Consider the following table We can use a group by and aggregates to collect multiple types of information. For example, a group by can quickly tell us the number of countries on each continent. How many countries are in each continent? select continent , count (*) from countries group by continent Keep in mind when using GROUP BY: Group by X means put all those with the same value for X in the same row. Group by X, Y put all those with the same values for both X and Y in the same row. More Interesting Things About GROUP BY 1. Aggregations Can Be Filtered Using The HAVING Clause You will quickly ...