Question: what is difference between correlated subquery and nested subquery?
Answer: Nested Subqueries Versus Correlated Subqueries : With a normal nested subquery, the inner SELECT query runs first and executes once, returning values to be used by the main query. A correlated subquery, however, executes once for each candidate row considered by the outer query.