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

The keyword ‘ALL’ used along with ‘UNION’ is not synonymous with just the ‘UNION’ statement. It produces the duplicate rows, if they exist, from the combination of the two tables in the SELECT query.



Your comments will be displayed only after manual approval.