W10 Flashcards

1
Q

AVG()

A

Returns a column’s average value

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

SUM()

A

Returns the sum of a column’s values

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

MAX()

A

Returns a column’s highest value

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

MIN()

A

Returns a column’s lowest value

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

COUNT()

A

Returns the number of rows in a column

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

Summary Queries

A

Summary queries are queries that contain one or more aggregate functions.

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

Aggregate Functions

A

operate on a set of rows to calculate and return a single value.

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

GROUP BY

A

The GROUP BY clause is used when you have an aggregate function that you want to use on the grouped data.

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

HAVING

A

This clause also works with aggregate functions and allows you to filter the groups. It works a lot like the WHERE clause but the WHERE clause filters rows and the HAVING clause filters groups.

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

ROLLUP

A

This operator can be used with grouping and aggregates allowing you to add one or more summary rows to your results.

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

SELECT clause order

A

SELECT
FROM
WHERE
GROUP BY
HAVING
ORDER BY
LIMIT

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

SELECT order of execution

A

FROM
WHERE
GROUP BY
HAVING
SELECT
ORDER BY
LIMIT

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