SQL Aggregate Functions Flashcards

1
Q

What is select for?

A

The SELECT statement is used to select data from a database. The data returned is stored in a result table, called the result-set.

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

Returns the average value

A

AVG ()

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

Returns the number of rows.

A

Count()

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

Returns the first value.

A

First()

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

Returns the last value.

A

Last()

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

Returns the largest value.

A

MAX()

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

Returns smallest value.

A

MIN()

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

Returns the sum.

A

SUM()

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

What is Aggregate functions for?

A

SQL aggregate functions return a single value, calculated from values in a column.

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