What makes a subquery correlated?
-
A
It refers to a column of the outer row
Correct answer
-
B
It returns exactly one column
-
C
It appears only in the FROM clause
-
D
It joins two copies of one table
Correct answer
A. It refers to a column of the outer row
12 views
Explanation
A correlated subquery depends on the current outer row, so it is re-evaluated for each candidate row.
Reference
Asked in: NTS, PPSC IT, Interviews
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ