Bird
0
0

Which of the following best describes a correlated subquery?

easy📝 Conceptual Q2 of 15
SQL - Subqueries
Which of the following best describes a correlated subquery?
AA subquery that is executed only once
BA subquery that does not depend on the outer query
CA subquery that returns multiple rows without conditions
DA subquery that references columns from the outer query
Step-by-Step Solution
Solution:
  1. Step 1: Identify correlation in subqueries

    A correlated subquery uses columns from the outer query in its WHERE or SELECT clause.
  2. Step 2: Differentiate from non-correlated subqueries

    Non-correlated subqueries run independently without referencing outer query columns.
  3. Final Answer:

    A subquery that references columns from the outer query -> Option D
  4. Quick Check:

    Correlated subquery = references outer query columns [OK]
Quick Trick: Correlation means subquery uses outer query columns [OK]
Common Mistakes:
MISTAKES
  • Confusing correlation with subquery independence
  • Assuming all subqueries are correlated
  • Ignoring column references in subquery

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes