Question
Easy

Which of the following is true about the HAVING clause ?

1
Similar to the WHERE clause but is used for columns rather than groups.
2
Similar to WHERE clause but is used for rows rather than columns.
3
Similar to WHERE clause but is used for groups rather than rows.
4
Acts exactly like a WHERE clause.
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Database Management System (DBMS) & SQL
Topic: SQL
Correct Answer
Option C
Explanation

The correct option is (3): The HAVING clause is a crucial component of Structured Query Language (SQL) used in conjunction with the GROUP BY clause. While the WHERE clause filters individual data records (or rows) before any grouping or aggregation takes place, the HAVING clause is specifically designed to filter the summary output or groups that are produced after the GROUP BY clause has executed and aggregate functions (like SUM,…Read More