In which sequence are queries and sub-queries executed by the SQL engine?
I think answer 4 is correct. There are a few considerations: type of subquery – is it corrrelated, or not. Consider: SELECT * FROM t1 WHERE id IN ( SELECT id FROM t2 ) Here, the subquery is not correlated to the outer query. If the number of values in t2.id is small in comparison … Read more