试题详情
- 单项选择题 You created a view called EMP_DEPT_VU that contains three columns from the EMPLOYEES and DEPARTMENTS tables: EMPLOYEE_ID, EMPLOYEE_NAME AND DEPARTMENT_NAME. The DEPARTMENT_ID column of the EMPLOYEES table is the foreign key to the primary key DEPARTMENT_ID column of the DEPARTMENTS table. You want to modify the view by adding a fourth column, MANAGER_ID of NUMBER data type from the EMPLOYEES tables. How can you accomplish this task?()
A、ALTER VIEW EMP_dept_vu (ADD manger_id NUMBER);
B、MODIFY VIEW EMP_dept_vu (ADD manger_id NUMBER);
C、ALTER VIEW emp_dept_vu AS SELECT employee_id, employee_name, department_name, manager_id FROM employee e, departments d WHERE e.department _ id = d.department_id;
D、MODIFY VIEW emp_dept_vu AS SELECT employee_id, employee_name, department_name, manager_id FROM employees e, departments d WHERE e.department _ id = d.department_id;
E、CREATE OR REPLACE VIEW emp_dept_vu AS SELECT employee_id, employee_name, department_name, manager_id FROM employees e, departments d WHERE e.department _ id = d.department_id;
F、You must remove the existing view first, and then run the CREATE VIEW command with a new column list to modify a view.
- E
关注下方微信公众号,在线模考后查看
热门试题
- You are
- Which two requiremen
- You specify a nonzer
- Which setting&
- The database
- You are
- The BACKUP_TAP
- PL/SQL很容易检测和处理预定义和用户
- Which statement adds
- Which two statements
- Given: What is
- You defined&en
- You added a PHONE_N
- select count(*) from
- Examine the structu
- Which two̳
- Examinetheoutputofth
- 假设创建了一个侦听器listner1,在
- In which
- You are