Chapter 5 Flashcards

1
Q

Which of the following is not an aggregate function?

a. ADD_MONTH()
b. MAX()
c. AVG()
d. COUNT()

A

a. ADD_MONTHS()

This is a date and time function that adds a number of months to a specified date.

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

Which of the following statements best describes what the MIN() function is used for?

a. it is used to sort data in descending order.
b. it is used to tell the database which table to retrieve columns from.
c. it is used to substitute a name for a field or value.
d. it is used to locate and return the lowest value in a column.

A

d. it is used to locate and return the lowest value in a column.

The MIN() function is used to return the lowest value in a column.

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

Which of the following clusters data into groups and then performs an aggregate function on the group?

a. LIKE
b. ORDER BY
c. GROUP BY
d. LTRIM()

A

c. GROUP BY

The GROUP BY clause is used to cluster data into groups and then perform an aggregate function on the group.

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

Which of the following is used to specify a specific search criterion (filter) on a group of data?

a. IN
b. HAVING
c. NOT
D. RTRIM()

A

b. HAVING

The HAVING clause enables you to speciy specific search criteria (filter) on groups of data.

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

Which of the following is used to specify a specific search criterion (filter) on a group of data?

a. IN
b. HAVING
c. NOT
D. RTRIM()

A

b. HAVING

The HAVING clause enables you to specify specific search criteria (filter) on groups of data.

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