To add a condition to a SQL query for groupings, the ________ clause is used.

  • GROUP
  • HAVING
  • ORDER BY
  • WHERE
The HAVING clause in SQL is used to add a condition to a query when using GROUP BY. It allows you to filter the results of a GROUP BY based on a specified condition.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *