nerdexam
Oracle

1Z0-061 · Question #152

View the Exhibit and examine the description for the CUSTOMERS table. You want to update the CUST_INCOME_LEVEL and CUST_CREDIT_LIMIT columns for the customer with the CUST_ID 2360. You want the…

The correct answer is A. UPDATE customers. Updating Two Columns with a Subquery You can update multiple columns in the SET clause of an UPDATE statement by writing multiple subqueries. The syntax is as follows: WHERE condition) WHERE condition)] [WHERE condition ] ;

Manipulating Data

Question

View the Exhibit and examine the description for the CUSTOMERS table. You want to update the CUST_INCOME_LEVEL and CUST_CREDIT_LIMIT columns for the customer with the CUST_ID 2360. You want the value for the CUST_INCOME_LEVEL to have the same value as that of the customer with the CUST_ID 2560 and the CUST_CREDIT_LIMIT to have the same value as that of the customer with CUST_ID 2566. Which UPDATE statement will accomplish the task?

Options

  • AUPDATE customers
  • BUPDATE customers
  • CUPDATE customers
  • DUPDATE customers

How the community answered

(66 responses)
  • A
    71% (47)
  • B
    9% (6)
  • C
    15% (10)
  • D
    5% (3)

Explanation

Updating Two Columns with a Subquery You can update multiple columns in the SET clause of an UPDATE statement by writing multiple subqueries. The syntax is as follows: WHERE condition) WHERE condition)] [WHERE condition ] ;

Topics

#UPDATE#correlated subquery#multiple column update#DML

Community Discussion

No community discussion yet for this question.

Full 1Z0-061 Practice