1.

The keyword used with UNION that does not retain duplicate rows is _____________(a) ALL(b) NARROW(c) STRICT(d) DISTINCTThis question was posed to me in homework.My question is from Managing MySQL User Accounts in portion General MySQL Administration of MySQL

Answer» CORRECT answer is (d) DISTINCT

Easy 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.


Discussion

No Comment Found

Related InterviewSolutions