1.

The keyword used with UNION that retains duplicate rows is ___________(a) ALL(b) NARROW(c) STRICT(d) DISTINCTThis question was posed to me in a national level competition.My doubt is from Tuning the Server in section General MySQL Administration of MySQL

Answer»

Correct option is (a) ALL

Easiest explanation: 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.



Discussion

No Comment Found

Related InterviewSolutions