QuestionQ17

VerifiedReporting Aggregated Data Using the Group Functions

Which statement is accurate about using functions in WHERE and HAVING clauses?

Explanation

WHERE filters rows before aggregate calculations are performed, so an aggregate function such as AVG, SUM, or COUNT cannot be used directly there. A subquery can calculate the aggregate result and make it available to the outer WHERE condition. Aggregate functions are designed for use in HAVING, while single-row functions can be used without requiring a subquery.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!