Home »
MCQs »
SQL MCQs »
SQL Statements and Clauses MCQs
What is the difference between HAVING and WHERE clause?
18. What is the difference between HAVING and WHERE clause?
- HAVING clause is used in column operation whereas WHERE clause is used in row operation.
- HAVING clause is post-filter whereas WHERE clause is pre-filter.
- HAVING clause filters the groups whereas WHERE clauses filter the single record of the table.
- All of the above
Answer: D) All of the above
Explanation:
The differences between HAVING and WHERE clauses are:
- HAVING clause is used in column operation whereas WHERE clause is used in row operation.
- HAVING clause is post-filter whereas WHERE clause is pre-filter.
- HAVING clause filters the groups whereas WHERE clauses filter the single record of the table.