Examine the structure if the EMPLOYEES table:Column name Data Type RemarksEMPLOYEE_ID NUMBER NOT NULL, Primary KeyEMP_NAME VARCHAR2(30)JOB_ID VARCHAR2(20) NOT NULLSAL NUMBERMGR_ID NUMBER References EMPLOYEE_ID columnDEPARTMENT_ID NUMBER Foreign key to DEP

题目

Examine the structure if the EMPLOYEES table:Column name Data Type RemarksEMPLOYEE_ID NUMBER NOT NULL, Primary KeyEMP_NAME VARCHAR2(30)JOB_ID VARCHAR2(20) NOT NULLSAL NUMBERMGR_ID NUMBER References EMPLOYEE_ID columnDEPARTMENT_ID NUMBER Foreign key to DEPARTMENT_ID column of the DEPARTMENTS tableYou need to create a view called EMP_VU that allows the user to insert rows through the view. Which SQL statement, when used to create the EMP_VU view, allows the user to insert rows? ()

A. CREATE VIEW emp_Vu AS SELECT employee_id, emp_name, department_id FROM employees WHERE mgr_id IN (102, 120);

B. CREATE VIEW emp_Vu AS SELECT employee_id, emp_name, job_id department_id FROM employees WHERE mgr_id IN (102, 120);

C. CREATE VIEW emp_Vu AS SELECT department_id, SUM(sal) TOTALSAL FROM employees WHERE mgr_id IN (102, 120) GROUP BY department_ id;

D. CREATE VIEW emp_Vu AS SELECT employee_id, emp_name, job_id, DISTINCT department_id FROM employees;


相似考题
更多“Examine the structure if the EMPLOYEES table:Column name Data Type RemarksEMPLOYEE_ID NUMB ”相关问题
  • 第1题:

    函数substr(“DATASTRUCTURE”,5,9)的返回值为()。

    A.“STRUCTURE”
    B.“DATA”
    C.“DATASTRUCTURE”
    D.“ASTRUCTUR”

    答案:A
    解析:
    substr函数的作用是找到从第5个字符开始,长度为9的子串。

  • 第2题:

    如果table_name表中有索引index_name,删除此索引的语句错误的是()。

    A.DROP INDEX index_name ON talbe_name

    B.ALTER TABLE table_name DROP INDEX index_name

    C.DROP INDEX table_name.index_name

    D.ALTER TABLE table_name DROP CONSTRAINT index_name


    ALTER TABLE table_name DROP CONSTRAINT index_name

  • 第3题:

    Python 如何定义一个函数()

    A.class <name>(<type> arg 1,< type> arg2, … <type> argN)

    B.function <name>(arg 1,arg 2, … argN)

    C.def <name>(arg 1,arg 2, … argN)

    D.def <name>(<type> arg 1,< type> arg2, … <type> argN)


    实例函数

  • 第4题:

    Most operating systems have a standard set of ( ) to handle the processing of all input and output instructions.

    A.spreadsheet
    B.control instructions
    C. I/O operation
    D.datA.table

    答案:B
    解析:
    翻译:

    大多数操作系统都有一套标准的(71)处理所有的输入和输出指令。

    A. 电子表格 B. 控制指令

    C. I/O操作 D. 数据表

  • 第5题:

    下列定义函数的方法,在Python中正确的是()。

    A.class<name>(<type> arg1,<type> arg2,…<type>argN)

    B.function <name>(arg1,arg2,…argN)

    C.def <name>(arg1,arg2,…argN)

    D.def <name>(<type> arg1,<type> arg2,…<type>argN)


    def (arg1,arg2,…argN)

  • 第6题:

    2、下列定义函数的方法,在Python中正确的是()。

    A.class<name>(<type> arg1,<type> arg2,…<type>argN)

    B.function <name>(arg1,arg2,…argN)

    C.def <name>(arg1,arg2,…argN)

    D.def <name>(<type> arg1,<type> arg2,…<type>argN)


    def (arg1,arg2,…argN)