Aggregate functions summarise rows: COUNT(), SUM(), AVG(), MIN(), MAX(). COUNT(*) counts all rows including nulls. COUNT(column) skips null values. Use them in reports and dashboard queries.
Aggregates
SELECT COUNT(*) FROM orders;
SELECT SUM(total) FROM orders;
SELECT AVG(total) FROM orders;
SELECT MAX(total), MIN(total) FROM orders;
SELECT ROUND(AVG(total), 2) FROM orders;