Mid From PDF SQL SQL & Databases

What are aggregate functions in SQL?

ggregate functions perform a calculation on a set of values and return a single value.

Common aggregate functions include:

  • COUNT(): Returns the number of rows.
  • SUM(): Returns the sum of a column.
  • AVG(): Returns the average of a column.
  • MAX(): Returns the maximum value.
  • MIN(): Returns the minimum value.

Example:

SELECT AVG(salary)

FROM employees;

More from SQL Server Tutorial

All questions for this course
Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details