SQL provides built-in aggregate functions that let you perform calculations on data in a column — like counting rows or finding the highest value.
COUNT(*)
counts the total number of rowsSELECT COUNT(*) FROM students;
SUM(column)
adds up all the values in a columnSELECT SUM(age) FROM students;
MIN(column)
returns the smallest valueSELECT MIN(age) FROM students;
MAX(column)
returns the largest valueSELECT MAX(age) FROM students;
AVG(column)
calculates the average valueSELECT AVG(age) FROM students;
These functions are useful when you want summary statistics from your data — like total users, average age, or highest score.