1.

To combine multiple retrievals, which keyword is used to write several SELECT statements between them?(a) COMBINE(b) CONCAT(c) JOIN(d) UNIONThe question was asked during an internship interview.My doubt is from Perl Script Characteristics topic in chapter MySQL Programs Using Perl DBI and PHP of MySQL

Answer»

Correct option is (d) UNION

Best explanation: The ‘UNION’ operator is used for combining the results of various ‘SELECT’ queries into ONE. For EXAMPLE, ‘SELECT a FROM table1 UNION SELECT a FROM table2;’ produces the results from tables table1 concatenated with that of table2.



Discussion

No Comment Found

Related InterviewSolutions