QuestionQ95

VerifiedUsing Subqueries to Solve Queries

Review the following SQL statement:

Question Image

Which two statements are true?

Choose two
Explanation

Without a WHERE clause, an UPDATE targets all rows in the target table. The reference to o.customer_id is an outer-row reference, so the subquery is correlated and is conceptually evaluated for each row processed by the UPDATE. Oracle requires a subquery used to assign a single column in an UPDATE to return exactly one row per updated row; multiple rows produce an error.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!