QuestionQ53Verified/Restricting and Sorting DataCopy linkReport a problemAsk AstroTutorSave questionWhich statements are true about the WHERE and HAVING clauses in a SELECT statement? Choose twoAThe HAVING clause can be used with aggregate functions in subqueries.BThe WHERE clause can be used to exclude rows after dividing them into groups.CThe WHERE clause can be used to exclude rows before dividing them into groups.DThe aggregate functions and columns used in the HAVING clause must be specified in the SELECT list of the query.EThe WHERE and HAVING clauses can be used in the same statement only if they are applied to different columns in the table. ACShow AnswerAnswerExplanationWHERE removes individual rows before any grouping occurs. HAVING restricts the resulting groups and can use aggregate functions, including in a subquery. Aggregate expressions used solely to filter groups do not have to be included in the select list, and WHERE and HAVING can operate on the same column.Learn moreOracle Database Aggregate FunctionsOracle Database SELECT StatementShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion