Introduction
GROUP BY helps you organize data into groups so you can summarize or count things easily.
When you want to count how many sales each product has.
When you want to find the average score for each student.
When you want to see total expenses by category and month.
When you want to group customers by city and state to see how many are in each area.