1.

Which subquery cannot be executed by itself as a separate statement?(a) Correlated(b) Uncorrelated(c) EXISTS(d) NOT EXISTSThis question was addressed to me at a job interview.I'd like to ask this question from Performing Multiple topic in division Using SQL to Manage Data of MySQL

Answer»

Correct choice is (a) CORRELATED

The best I can EXPLAIN: An uncorrelated subquery contains REFERENCES to the values from the outer QUERY. So, it is dependent on it. Therefore, a correlated subquery cannot be EXECUTED by itself as a separate statement.



Discussion

No Comment Found

Related InterviewSolutions