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
2
Q
HAVING
A
works like the WHERE, but operates on grouped data, returned by the GROUP BY clause.
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
4
Q
INTERSECT
A
returns the common records between two or more SELECT statements.