What is the difference between "WHERE" and "HAVING" clauses in SQL?

PYQ Deloitte Hiring Assessment 2025

What is the difference between "WHERE" and "HAVING" clauses in SQL?

  1. A.

    Both are the same

  2. B.

    WHERE filters rows before grouping, HAVING filters groups after aggregation

  3. C.

    HAVING filters rows before grouping, WHERE filters groups after aggregation

  4. D.

    WHERE can be used with aggregate functions

Attempted by 956 students.

Sign up free to check your answer

Sign up free

Explore the full course: Deloitte Nla

Loading lesson…