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

Which function returns the number of rows in a result set including those with NULL values in a column?

  1. A COUNT(column)
  2. B COUNT(*)
  3. C SUM(column)
  4. D TOTAL(*)
Answer

COUNT(*)

COUNT(*) counts rows. COUNT(column) counts only rows where that column is not NULL, which is a frequent source of unexpected results.

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