Basics & SELECT Queries · SQL SQL

Which of the following clauses is used to filter rows after aggregate functions have been computed?

Practice question from Basics & SELECT Queries (SQL SQL), with the correct answer and a step-by-step solution.

medium · MCQ · Q-CA0BC1

Which of the following clauses is used to filter rows after aggregate functions have been computed?

  1. A.WHERE
  2. B.HAVINGCorrect answer
  3. C.GROUP BY
  4. D.FILTER

Solution

The HAVING clause is specifically designed to filter groups created by GROUP BY based on aggregate conditions. The WHERE clause filters individual rows before aggregation occurs.

More from Basics & SELECT Queries

All of Basics & SELECT Queries

Practise more SQL

Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.

Start practising free

Free to start · No credit card needed