1z0-071 Exam QuestionsBrowse all questions from this exam

1z0-071 Exam - Question 87


Which two statements are true about the WHERE and HAVING clauses in a SELECT statement? (Choose two.)

Show Answer
Correct Answer: CD

The HAVING clause can be used with aggregating functions in subqueries because it allows you to filter groups of rows after applying aggregate functions. The WHERE clause is used to exclude rows before they are divided into groups, which makes it a preliminary filter that helps in determining which rows are included in the groupings for aggregate functions.

Discussion

2 comments
Sign in to comment
yaya32Options: CD
Jan 16, 2024

CD for me

RIDA_007Options: DE
May 18, 2024

C is incorrect because subqueries using aggregate functions typically do not use HAVING clauses; rather, HAVING is used in the outer query to filter the results of aggregates