ocp考试资料群:569933648 验证码:ocp OCP 12c 19c考试题库解析与资料群:钉钉群号:35277291
全部博文(487)
分类: Oracle
2021-05-17 16:33:00
本套题库是OCP考试中的071(中文版)试题,由CUUG整理,如有报考OCP认证意向,可以联系cuug咨询老师。
28、请选择最佳答案。
查看EMPLOYEES表的说明:
Name Null? Type
-------- ------- -------
EMPLOYEE_ID NOT NULL NUMBER(38)
SALARY NOT NULL NUMBER(38)
DEPARTMENT_ID NOT NULL NUMBER(38)
哪一条语句会将每个员工的SALARY增加其DEPARTMENT_ID的最低SALARY?
A) UPDATE employees e1
SET salary =
(SELECT e2.salary + MIN (e2.salary)
FROM employees e2
WHERE e1.department_id = e2.department_id
GROUP BY e2.department_id) ;
B) UPDATE employees e1
SET salary =
(SELECT e1.salary + MIN (e2.salary)
FROM employees e2
WHERE e1. department_id = e2.department_id) ;
C) UPDATE employees e1
SET salary = salary +
(SELECT MIN(e1.salary)
FROM employees e2
WHERE e1.department_id = e2.department_id) ;
D) UPDATE employees e1
SET salary = salary +
(SELECT MIN(salary)
FROM employees e2) ;