nerdexam
Oracle

1Z0-071 · Question #217

1Z0-071 Question #217: Real Exam Question with Answer & Explanation

The correct answer is D. It executes successfully but does not give the desired update. See the full explanation below for the reasoning.

Question

View the exhibit and examine the structures of the EMPLOYEES and DEPARTMENTS tables. You want to update EMPLOYEES table as follows: Update only those employees who work in Boston or Seattle (locations 2900 and 2700). Set department_id for these employees to the department_id corresponding to London (location_id 2100). Set the employees' salary in location_id 2100 to 1.1 times the average salary of their department. Set the employees' commission in location_id 2100 to 1.5 times the average commission of their department. You issue the following command: What is outcome?

Exhibits

1Z0-071 question #217 exhibit 1
1Z0-071 question #217 exhibit 2

Options

  • AIt generates an error because multiple columns (SALARY, COMMISSION) cannot be specified
  • BIt generates an error because a subquery cannot have a join condition in a UPDATE statement.
  • CIt executes successfully and gives the desired update
  • DIt executes successfully but does not give the desired update

Community Discussion

No community discussion yet for this question.

Full 1Z0-071 Practice