Posts in: Aggregation & Grouping

Using Aggregate Functions in MySQL

Learn how to calculate totals, averages, and counts using built-in aggregate functions like COUNT, SUM, AVG, MIN, and MAX.

Read More →

Grouping Data with GROUP BY in MySQL

Use the GROUP BY clause to group rows based on column values and perform aggregate functions like COUNT, AVG, SUM per group.

Read More →

Filtering Groups with HAVING in MySQL

The HAVING clause is used to filter groups after aggregation, often used with GROUP BY.

Read More →

GROUP BY and HAVING in MySQL

Aggregate data into groups using GROUP BY and filter grouped results using HAVING.

Read More →