MySQL Derived Table, Correlated Query



Comment

Correlated vs Non-Correlated 아래는 Non-Correlated 쿼리다. 즉 내부(Inner) 쿼리가 외부(Outer) 쿼리를 참조하지 않는다. SELECT name FROM city WHERE population > (SELECT population FROM city WHERE name = 'new york'); 반면 아래는 Correlated 쿼리다. 내부 쿼리가 co.code 로 외부 쿼리를 참조한다. SELECT name FROM country as co WHERE EXISTS…

Read this article