可学答题网 > 问答 > IBM(000-104)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You created a view called EMP_DEPT_VU


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.
参考答案
参考解析:
分类:IBM(000-104)题库
相关推荐

1、A view is created with the following s

A view is created with the following statement:CREATE VIEW v1 AS SELECT col1, col2, col3, col4 FROM t1 WHERE col4 > 1000 WITH CHECK OPTIONWha...

2、A view is created with the following s

A view is created with the following statement:CREATE VIEW v1 AS SELECT col1, col2, col3 FROM t1 WHERE col4 > 1000 ; When will DB2 access t...

3、You need to create a view EMP_VU. The

You need to create a view EMP_VU. The view should allow the users to manipulate the records of only the employees that are working for depar...

4、User Mary has a view called EMP_DEPT_L

User Mary has a view called EMP_DEPT_LOC_VU that was created based on the EMPLOYEES, DEPARTMENTS, and LOCATIONS tables. She has the privilege t...

5、Mary has a view called EMP_DEPT_LOC_V

Mary has a view called EMP_DEPT_LOC_VU that was created based on the EMPLOYEES, DEPARTMENTS, and LOCATIONS tables. She granted SELECT privilege ...

6、Which command will create a group call

Which command will create a group called ‘delivery’and set the administrators to john’ and ‘mary’?()Amkgroup -A=john,mary deliveryBgroupadd -A=john,mary deliveryCmkgroup adms=john,mary deliveryDgroupadd adms=john,mary delivery