Home » MYSQL » MySQL UNION » Question
  1. Which keyword used with UNION does not retain duplicate rows?
    1. DISTINCT
    2. ALL
    3. NARROW
    4. STRICT
    5. None of these
Correct Option: A

The keyword ‘DISTINCT’ used along with ‘UNION’ is synonymous with just the ‘UNION’ statement. It produces only the distinct rows from the combination of the two tables in the SELECT query.



Your comments will be displayed only after manual approval.