Question · SQL and MySQL course · Module 6: Aggregation and grouping

What HAVING is for

What is the HAVING clause used for?

Answer options

  • To filter individual rows before grouping
  • To filter groups based on the result of an aggregate function, after GROUP BY has run
  • To sort the groups
  • To join tables

You can check the correct answer by solving this task in the CodeWorlds game.