General Questions
General Questions
2. Correlated Subquery
SELECT * FROM emp a WHERE 1=(SELECT COUNT(*) FROM emp b WHERE b.sal>=a.sal);
A correlated subquery is a subquery that refers to a column of a table that is not in its
FROM clause. The column can be in the Projection clause or in the WHERE clause.