Correct answer: A. When you need to retrieve columns from both tables in the result
Explanation
Joins are often preferred when you need to display columns from both tables, while subqueries are often clearer for filtering or computing a value alone.
Practise 3 questions on this topic
Take SQL Subqueries — Timed Test (3 questions) — scored instantly, explanation for every question, no login.