What are aggregate functions?
Model answer
Functions that compute one value from many rows: COUNT, SUM, AVG, MIN and MAX. For example SELECT AVG(price) FROM products. Most aggregates ignore NULLs, except COUNT(*), which counts all rows.
Learn this topic
GROUP BY and HAVING: Summaries for Each Group in the course SQL for Beginners: Learn Databases Step by Step.
Sign in to add your own answer.
More questions
- What is the difference between COUNT(*), COUNT(column) and COUNT(DISTINCT column)?
- What does GROUP BY do?
- How do you find duplicate values in a column?
- What does HAVING do?
- How do you count rows per category including categories with zero rows?
- How do you calculate a running total or percentage of total?