What clause collects rows into groups for aggregation? Group of answer choices WHERE…
- User
What clause collects rows into groups for aggregation? Group of answer choices
WHERE
GROUP BY
HAVING
ORDER BY
Assistant
The correct answer is: GROUP BY
Explanation:
- The GROUP BY clause is used to collect rows into groups based on one or more columns. This is typically done to perform aggregation operations (like
SUM,COUNT,AVG, etc.) on each group separately. - The GROUP BY clause is essential for aggregate functions because it defines the groups over which the aggregation is performed.
Other options:
- WHERE clause is used to filter rows before grouping.
- The GROUP BY clause is used to collect rows into groups based on one or more columns. This is typically done to perform aggregation operations (like
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.