Back to SQL Notes
Topic #16

SQL Aggregate Functions

Aggregate functions compress thousands of rows into a single answer — totals, averages, counts and more. They are the heart of every dashboard and summary report.


SQL Aggregate Functions

An aggregate function is a function that performs a calculation on a set of values, and returns a single value.

Aggregate functions are often used with the GROUP BY clause of the SELECT statement. The GROUP BY clause splits the result-set into groups of values and the aggregate function can be used to return a single value for each group.

The most commonly used SQL aggregate functions are:

  • MIN() - returns the smallest value of a column
  • MAX() - returns the largest value of a column
  • COUNT() - returns the number of rows in a set
  • SUM() - returns the sum of a numerical column
  • AVG() - returns the average value of a numerical column

Aggregate functions ignore null values (except for COUNT(*)).

We will go through the aggregate functions above in the next chapters.

Want to go beyond the notes?

Join Coding Now Tech Institute's SQL course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

SQL Aggregate Functions – FAQs

Quick answers about learning SQL Aggregate Functions in SQL.

This free note from Coding Now Tech Institute explains SQL Aggregate Functions in SQL — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every SQL topic on Coding Now Tech Institute, including SQL Aggregate Functions, is 100% free with no signup required.
With focused practice, most students grasp SQL Aggregate Functions in 1–3 days from these notes; pairing it with Coding Now Tech Institute's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the Coding Now Tech Institute Community (/community) — expert instructors answer within 24 hours.
Call NowEnroll Now