1.

Which operators are used when a subquery returns multiple rows to be evaluated in comparison to the outer query?(a) IN and NOT IN(b) EXISTS and NOT EXISTS(c) OUTER JOIN and INNER JOIN(d) LEFT JOIN and RIGHT JOINI had been asked this question during an interview.I would like to ask this question from Performing Multiple topic in chapter Using SQL to Manage Data of MySQL

Answer»

Correct OPTION is (a) IN and NOT IN

The best EXPLANATION: When there is a need to evaluate multiple rows in COMPARISON to the outer query, the ‘IN’ and ‘NOT IN’ OPERATORS are used. They are used for testing whether a comparison VALUE is present in a set of values.



Discussion

No Comment Found

Related InterviewSolutions