QuestionQ223

VerifiedManipulating Data

You are a database administrator at ABC.com. Carefully review the exhibit and the structures of the CUSTOMRS and SALES tables.

Question Image

Assess the following SQL statement:

Exhibit:

Question Image

Which statement is true about executing the preceding UPDATE statement?

Explanation

An UPDATE statement can target an updatable inline view based on a single table. The view selects from SALES, and TIME_ID is among its selected columns, so setting TIME_ID is permitted. A subquery is also valid in the WHERE clause to identify the matching customer.

Community Discussion

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