Oracle
1Z0-082 · Question #14
Table EMPLOYEES contains columns including EMPLOYEE_ID, JOB_ID and SALARY. Only the EMPLOYEE_ID column is indexed. Rows exist for employees 100 and 200. Examine this statement: Which two statements…
The correct answer is A. Employee 100 will have SALARY set to the same value as the SALARY of employee 200 B. Employee 200 will have JOB_ID set to the same value as the JOB_ID of employee 100. See the full explanation below for the reasoning.
SQL and PL/SQL
Question
Table EMPLOYEES contains columns including EMPLOYEE_ID, JOB_ID and SALARY. Only the EMPLOYEE_ID column is indexed. Rows exist for employees 100 and 200. Examine this statement:
Which two statements are true? (Choose two.)
Exhibit
Options
- AEmployee 100 will have SALARY set to the same value as the SALARY of employee 200
- BEmployee 200 will have JOB_ID set to the same value as the JOB_ID of employee 100
- CEmployee 200 will have SALARY set to the same value as the SALARY of employee 100
- DEmployee 100 will have JOB_ID set to the same value as the JOB_ID of employee 200
- EEmployees 100 and 200 will have the same JOB_ID as before the update command
- FEmployees 100 and 200 will have the same SALARY as before the update command
How the community answered
(18 responses)- A83% (15)
- C6% (1)
- E6% (1)
- F6% (1)
Topics
#UPDATE subquery#correlated subquery#DML#row swapping
Community Discussion
No community discussion yet for this question.
