QuestionQ191

VerifiedRestricting and sorting data

Which two statements are correct about the WHERE and HAVING clauses in a SELECT statement?

Choose two
Explanation

WHERE filters source rows before they are divided into groups. HAVING filters the resulting groups and can use aggregate functions; this applies to subqueries as well. Aggregate expressions used in HAVING do not generally have to be included in the SELECT list.

Learn more

Community Discussion

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