Introduction
We use multiple aggregates to get different summary numbers from data in one query. This helps us understand data better in one go.
When you want to find the total and average sales in one report.
When you need to count how many items and find the maximum price at the same time.
When you want to see the smallest and largest values in a column together.
When you want to get multiple summary statistics like sum, count, and average for a group of data.