GROUPING Flashcards

1
Q

GROUP BY

A

used to arrange identical data into groups. It’s often used with aggregate functions (COUNT, MAX, MIN, SUM, AVG) to group the result-set by one or more columns

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

HAVING

A

works like the WHERE, but operates on grouped data, returned by the GROUP BY clause.

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

UNION

A

combines the result of two or more SELECT queries into a single result set.

automatically eliminates duplicate row

must be compatible data type

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

INTERSECT

A

returns the common records between two or more SELECT statements.

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