1.

Issuing ‘SELECT’ on a MERGE table is like _____________(a) UNION(b) UNION ALL(c) UNION DISTINCT(d) JOINThis question was posed to me in an online quiz.My question is taken from Perl Script Characteristics topic in section MySQL Programs Using Perl DBI and PHP of MySQL

Answer»

The correct answer is (b) UNION ALL

Easiest EXPLANATION: Performing a ‘SELECT’ operation on a ‘MERGE’ table is like performing ‘UNION ALL’. This means that DUPLICATE ROW results are not removed. ‘SELECT DISTINCT’ is like ‘UNION’ or ‘UNION DISTINCT’.



Discussion

No Comment Found

Related InterviewSolutions