Correlated subquery : Subquery : SQL Server / T-SQL examples (example source code) Organized by topic

C++
PHP
SQL Server / T-SQL
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