Computer Science

Assertion. The WHERE and HAVING clauses are used for the same thing in a SELECT query.

Reason. Both WHERE and HAVING clauses are used to specify conditions at different levels.

SQL Queries

1 Like

Answer

(d)

Assertion is false but Reason is true.

Explanation
The WHERE and HAVING clauses are not used for the same thing in a SELECT query. While both WHERE and HAVING clauses are used to specify conditions in a SELECT query, they operate at different levels. The WHERE clause filters rows based on conditions applied to individual rows before grouping, while the HAVING clause filters groups based on conditions applied to the result of aggregation functions after grouping.

Answered By

3 Likes


Related Questions