Introduction
GROUP BY helps us organize data by one column so we can see summaries for each group.
When you want to count how many items belong to each category.
When you want to find the total sales for each product.
When you want to see the average score for each student.
When you want to list unique values and some calculation for each.
When you want to group data by date, like sales per day.