Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What does the GROUP BY clause do?

  1. A Sorts the result set
  2. B Collapses rows sharing a value into a single row so aggregates can be applied
  3. C Filters rows before selection
  4. D Joins two tables
Answer

Collapses rows sharing a value into a single row so aggregates can be applied

GROUP BY creates one output row per distinct combination of the grouping columns, which is what allows COUNT, SUM and AVG to be computed per group.

All MySQL MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as