Chapter 6 Study Questions Flashcards

1
Q

______ functions operate on a single value and return a single value.

A

Scalar

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

_________ functions operate on a series of values and return a single value.

A

Aggregate

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

An _________ function is sometimes referred to as a column function because it operate on values in columns.

A

aggregate

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

An _______ _____ is one that contains one or more aggregate functions.

A

summary query

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

Use the ________ keyword to eliminate duplicate values.

A

DISTINCT

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

An aggregate function that returns the average of the non-null values in the expression (argument) ___.

A

AVG

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

The total of the non-null values in the expression is obtained with the ___ function.

A

SUM

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

The ___ function is invoked to find the lowest non-null value in the expression.

A

MIN

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

To return the highest non-null value in the expression, invoke the ___ function.

A

MAX

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

_____ with argument [ALL | DISTINCT] expression is invoked to find the number of non-null values in the expression.

A

COUNT

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

To find the number of rows in a table, invoke the _____ function with an asterisk as the expression(argument).

A

COUNT

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

A SELECT statement with a _____ __ clause groups the rows of a result based on one or more columns or expressions.

A

GROUP BY

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

The ______ clause specifies a search condition for a group or aggregate.

A

HAVING

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

If aggregate functions are included in the SELECT clause, the aggregate is calculated for each group specified by the _____ __ clause.

A

GROUP BY

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

When a _____ clause is included in a SELECT statement that uses grouping and aggregates, MySQL applies the search condition before it groups the rows and calculates the aggregates.

A

WHERE

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

Including a ______ clause in a SELECT statement that uses grouping and aggregates causes MySQL to apply the search condition after it groups the rows and calculates the aggregates.

A

HAVING

17
Q

The AND or OR operators may be used to compound search condition in a ______ clause just as may be done in a _____ clause.

A

HAVING, WHERE