1.

Which is the join in which all the rows from the right table appear in the output irrespective of the content of the other table?(a) CARTESIAN JOIN(b) CROSS JOIN(c) INNER JOIN(d) RIGHT JOINThis question was addressed to me during a job interview.I would like to ask this question from Perl Script Characteristics in chapter MySQL Programs Using Perl DBI and PHP of MySQL

Answer»

The correct OPTION is (d) RIGHT JOIN

The explanation: In a ‘RIGHT JOIN’, the OUTPUT is produced for every ROW of the right table, even if it does not EXIST in the other table. This is the reason why it is CALLED a ‘RIGHT JOIN’. ‘RIGHT JOIN’ and ‘LEFT JOIN’ are a kind of OUTER JOIN.



Discussion

No Comment Found

Related InterviewSolutions