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 keyDEPARTMENT_ID c

题目

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 keyDEPARTMENT_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.


相似考题
更多“You created a view called EMP_DEPT_VU that contains three columns from the EMPLOYEES and D ”相关问题
  • 第1题:

    Despite the wonderful acting and well-developed plot the _________ movie could not hold our attention.

    A) three-hours B) three-hour

    C) three-hours’ D) three-hour’s

     

     


    选B

     用破折号连接的作形容词不用复数.

  • 第2题:

    Questions 14-15 refer to the following e-mail.
    From: Restaurant Management
    To: All Staff
    Attention workers:
    Ally's Seafood House will be closed for an entire week at the beginning of March while our kitchen equipment is updated in accordance with the latest health standards. Specific dates for the closure will be announced as soon as we receive notification from the maintenance company.
    Unfortunately, hourly workers will be forced to take a week of unpaid leave during the scheduled maintenance, but it will not be subtracted from your allotted vacation days. Time off for salaried workers will be paid.
    Please direct any questions about the closure to your supervisor or shift manager.

    What does the notice mainly discuss?

    A. An approaching pay cut
    C. An upcoming renovation
    B. Employees' vacation schedules
    D. Newly hired kitchen supervisors

    答案:C
    解析:
    短文的开头部分指出,改装厨房设备的期间,饭店暂不营业,故选C。

  • 第3题:

    3、Toast创建完毕后,需要显示出来此时需要调用以下哪个方法?()

    A.makeText  

    B.show    

    C.create   

    D.view


    show

  • 第4题:

    利用SQL命令从职工表中派生出含有“职工号”、“姓名”字段的视图,下列语句正确的是

    A.CREATE VIEW ZG_view; SELECT职工号,姓名FROM职工表

    B.CREATE VIEW ZG_view AS; SELECT职工号,姓名FROM职工表

    C.CREATE QUERY ZG_view; SELECT职工号,姓名FROM职工表

    D.CREATE QUERY ZG_view AS; SELECT职工号,姓名FROM职工表


    正确答案:B
    解析:SQL的数据定义功能中,可以对视图进行定义,语句格式为:CREATEVIEWview_name[(column_name[,column_name]...)]ASselect_statement。

  • 第5题:

    Do you need any rice? I can get some() you()the supermarket.

    Ato;from

    Bfor;to

    Cfor;from


    B

  • 第6题:

    Toast对象创建后,需要显示出来此时需要调用以下哪个方法?()

    A.makeText

    B.show

    C.create

    D.view


    show