Question: what is the difference between nested subquery and correlated 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.