Correlated subquery : Subquery : SQL Server / T-SQL examples (example source code) Organized by topic
Java
Java Tutorial
Java Articles
Java Products
Java by API
C# / C Sharp
ASP.Net
JavaScript DHTML
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C++
PHP
Python
SQL Server / T-SQL
Oracle PL/SQL
PostgreSQL
SQL / MySQL
VB.Net
SQL Server / T-SQL Home
»
Subquery
»
[ Correlated subquery ]
1.
WHERE clause in the subquery's SELECT statement links the inner query to the outer query
2.
Correlated subquery using the department table in both inner and outer queries
3.
Correlated subquery: the inner query depends on the outer query for any of its values
4.
Correlated subquery using Distinct