Oracle
1Z0-061 · Question #24
View the Exhibit and examine the structures of the employees and departments tables. You want to update the employees table as follows: - Update only those employees who work in Boston or Seattle…
The correct answer is B. It executes successfully but does not give the correct result. 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 the 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 iocation_id 2100 to 1.1 times the
average salary of their department.
- Set the employees' commission in iocation_id 2100 to 1.5 times the
average commission of their department. You issue the following command:
What is the outcome?
Exhibits
Options
- AIt executes successfully and gives the correct result.
- BIt executes successfully but does not give the correct result.
- CIt generates an error because a subquery cannot have a join condition in an update statement.
- DIt generates an error because multiple columns (SALARY, COMMISSION) cannot be specified together in
How the community answered
(33 responses)- A3% (1)
- B82% (27)
- C6% (2)
- D9% (3)
Community Discussion
No community discussion yet for this question.

