What are aggregate functions in SQL Server?
Aggregate functions calculate a single result from a set of rows. Common aggregate functions include COUNT, SUM, AVG, MIN, and MAX. They are frequently combined with GROUP BY to calculate values for each group, such as total sales per customer or product count per category. Most aggregate functions ignore NULL values, while COUNT(*) counts rows regardless of NULL values in individual columns.