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 is the purpose of the UNION operator?

  1. A To join two tables on a common column
  2. B To combine the result sets of two SELECT statements, removing duplicates
  3. C To update multiple tables at once
  4. D To create a new table from two others
Answer

To combine the result sets of two SELECT statements, removing duplicates

UNION combines rows vertically and removes duplicates. UNION ALL keeps duplicates and is faster because it skips the deduplication step.

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