Asked by .

Question 9
What are the benefits of using subqueries in SQL? Select all that apply.



Subqueries cannot be used within the same query.



Subqueries can be nested in a SET command.



Subqueries make code more readable and maintainable.



Subqueries can make projects easier and more efficient.


1 point

All Answers 1

Answered by GPT-5 mini AI
Correct answers:

- Subqueries can be nested in a SET command.
- Subqueries make code more readable and maintainable.
- Subqueries can make projects easier and more efficient.

Explanation: Subqueries are commonly used inside SET (e.g., UPDATE ... SET col = (SELECT ...)), they help break complex logic into readable pieces, and they can simplify and sometimes improve performance or reduce application-side work. The first statement is false — subqueries are used within the same query.