Explain it in 60 seconds
Correlated subqueries
Data Engineering · SQL · Intermediate
What is a correlated subquery and what are its performance concerns?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- A correlated subquery references columns from the outer query.
- It logically runs once per outer row.
- Modern optimizers often rewrite them into joins, but not always.
- Can be slow on large data when not rewritten.
- Often replaceable with joins or window functions.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.