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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the purpose of a group by clause?

A

To divide rows returned from the select statement into groups.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly