Available Tables

Next →

COUNT, SUM, MIN, MAX, AVG Functions

SQL provides built-in aggregate functions that let you perform calculations on data in a column — like counting rows or finding the highest value.

Common Aggregate Functions

SELECT COUNT(*) FROM students;
SELECT SUM(age) FROM students;
SELECT MIN(age) FROM students;
SELECT MAX(age) FROM students;
SELECT AVG(age) FROM students;

These functions are useful when you want summary statistics from your data — like total users, average age, or highest score.