sql-aggregates Flashcards
1
Q
What are some examples of aggregate functions?
A
Max() : Computes the maximum of the non-null input values.
Avg(): Computes the average (arithmetic mean) of all the non-null input values.
Count(*): Computes the number of input rows.
Count(“any”): Computes the number of input rows in which the input value is not null.
2
Q
What is the purpose of a group by clause?
A
To divide rows returned from the select statement into groups.