Courses / SQL
21. HAVING clause
A clause used to filter records after an aggregation has been performed.
1 min read Chapter 21 of 29
SQL
HAVING clause
The HAVING clause filters results after aggregation in SQL queries.
"I need to see only the groups that meet certain criteria after I've calculated their totals."
The HAVING clause allows you to specify conditions on aggregated data, filtering results that meet those conditions after the GROUP BY operation.
"I need to see only the groups that meet certain criteria after I've calculated their totals."
The HAVING clause allows you to specify conditions on aggregated data, filtering results that meet those conditions after the GROUP BY operation.