Which keyword used with UNION does not retain duplicate rows?
(a) ALL
(b) NARROW
(c) STRICT
(d) DISTINCT
(a) ALL
(b) NARROW
(c) STRICT
(d) DISTINCT
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The correct answer is (d) DISTINCT
For explanation: 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.