The EMP table contains these columns: EMPLOYEE_ID NUMBER(4) EMPNAME VARCHAR2 (25) SALARY NUMBER(9,2) HIRE_DATE DATE You query the database with this SQL statement: SELECT empname,hire_date HIREDATE, salary FROM EMP ORDER BY hire_date; How will the result

题目

The EMP table contains these columns: EMPLOYEE_ID NUMBER(4) EMPNAME VARCHAR2 (25) SALARY NUMBER(9,2) HIRE_DATE DATE You query the database with this SQL statement: SELECT empname,hire_date HIREDATE, salary FROM EMP ORDER BY hire_date; How will the results be sorted?()

  • A、randomly
  • B、ascending by date
  • C、descending by date
  • D、ascending alphabetically
  • E、descending alphabetically

相似考题
更多“The EMP table contains these co”相关问题
  • 第1题:

    Which is a valid CREATE TABLE statement? ()

    A. CREATE TABLE EMP9$# AS (empid number(2));

    B. CREATE TABLE EMP*123 AS (empid number(2));

    C. CREATE TABLE PACKAGE AS (packid number(2));

    D. CREATE TABLE 1EMP_TEST AS (empid number(2));


    参考答案:A

  • 第2题:

    You are shrinking the SCOTT.EMP table by executing the ALTER TABLE SCOTT.EMP SHRINK SPACE CASCADE statement. What is a prerequisite for shrinking the SCOTT.EMP table?()

    • A、 You must enable the block change tracking feature.
    • B、 You must have enable the flashback feature.
    • C、 You must use the OMF in your database.
    • D、 You must define the tablespace of the SCOTT.EMP table for automatic segment space management.

    正确答案:D

  • 第3题:

    Why would you use the following FLASHBACK TABLE command?() FLASHBACK TABLE emp TO TIMESTAMP (’11:45’,’hh12:mi’); 

    • A、to undo the changes made to the EMP table since the specified time
    • B、to restore the EMP table that was wrongly dropped from the database
    • C、to view the transactions that have modified the EMP table since the specified time
    • D、to view the changes made to the EMP table for one or more rows since the specified time
    • E、to recover the EMP table to a point in time in the past by restoring the most recent backup

    正确答案:A

  • 第4题:

    单选题
    The EMP table contains these columns: EMPLOYEE_ID NUMBER(4) EMPNAME VARCHAR2 (25) SALARY NUMBER(9,2) HIRE_DATE DATE You query the database with this SQL statement: SELECT empname,hire_date HIREDATE, salary FROM EMP ORDER BY hire_date; How will the results be sorted?()
    A

    randomly

    B

    ascending by date

    C

    descending by date

    D

    ascending alphabetically

    E

    descending alphabetically


    正确答案: A
    解析: 暂无解析

  • 第5题:

    单选题
    下列哪个操作可以将表中的数据删除,并且不需要回滚删除后回收其所占有的空间,但表定义保留()
    A

    DELETE FROM EMP;

    B

    TUNCATE TABLE EMP;

    C

    TUNCATE TABLE EMP REUSE STORAGE;

    D

    DROP TABLE EMP;

    E

    以上所述都不正确


    正确答案: A
    解析: 暂无解析

  • 第6题:

    单选题
    Why would you use the following FLASHBACK TABLE command?()  FLASHBACK TABLE emp TO TIMESTAMP (’11:45’,’hh12:mi’);
    A

    to undo the changes made to the EMP table since the specified time

    B

    to restore the EMP table that was wrongly dropped from the database

    C

    to view the transactions that have modified the EMP table since the specified time

    D

    to view the changes made to the EMP table for one or more rows since the specified time

    E

    to recover the EMP table to a point in time in the past by restoring the most recent backup


    正确答案: C
    解析: 暂无解析

  • 第7题:

    单选题
    Why would you use the following FLASHBACK TABLE command?() FLASHBACK TABLE emp TO TIMESTAMP (’11:45’.’hh12:mi’);
    A

     to undo the changes made to the EMP table since the specified time

    B

     to restore the EMP table that was wrongly dropped from the database

    C

     to view the transactions that have modified the EMP table since the specified time

    D

     to view the changes made to the EMP table for one or more rows since the specified time


    正确答案: B
    解析: 暂无解析

  • 第8题:

    单选题
    Which SQL statement defines a FOREIGN KEY constraint on the DEPTNO column of the EMP table?()
    A

    CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) NOT NULL, CONSTRAINT emp_deptno_fk FOREIGN KEY deptno REFERENCES dept deptno);

    B

    CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) CONSTRAINT emp_deptno_fk REFERENCES dept (deptno));

    C

    CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) NOT NULL, CONSTRAINT emp_deptno_fk REFERENCES dept (deptno) FOREIGN KEY (deptno));

    D

    CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) FOREIGN KEY CONSTRAINT emp_deptno_fk REFERENCES dept (deptno));


    正确答案: A
    解析: 暂无解析

  • 第9题:

    单选题
    You are shrinking the SCOTT.EMP table by executing the ALTER TABLE SCOTT.EMP SHRINK SPACE CASCADE statement. What is a prerequisite for shrinking the SCOTT.EMP table?()
    A

     You must enable the block change tracking feature.

    B

     You must have enable the flashback feature.

    C

     You must use the OMF in your database.

    D

     You must define the tablespace of the SCOTT.EMP table for automatic segment space management.


    正确答案: C
    解析: 暂无解析

  • 第10题:

    多选题
    User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK,or any data definition language (DDL) command:  SQL> SELECT job FROM emp  2  WHERE job=’CLERK’ FOR UPDATE OF empno;  SCOTT has opened another session to work with the database. Which three operations would wait when issued in SCOTT’s second session?()
    A

    LOCK TABLE emp IN SHARE MODE;

    B

    LOCK TABLE emp IN EXCLUSIVE MODE;

    C

    DELETE FROM emp WHERE job=’MANAGER’;

    D

    INSERT INTO emp(empno,ename) VALUES (1289,’Dick’);

    E

    SELECT job FROM emp WHERE job=’CLERK’ FOR UPDATE OF empno;


    正确答案: A,D
    解析: 暂无解析

  • 第11题:

    多选题
    User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK, orany data definition language (DDL) command: SQL> SELECT ename FROM emp WHERE job=’CLERK’ FOR UPDATE OF empno; SCOTT has opened another session to work with the database instance.  Which three operations would waitwhen issued in SCOTT’s second session()
    A

    LOCK TABLE emp IN SHARE MODE;

    B

    LOCK TABLE emp IN EXCLUSIVE MODE;

    C

    UPDATE emp SET sal=sal*1.2 WHERE job=ANAGER?UPDATE emp SET sal=sal*1.2 WHERE job=?ANAGER?

    D

    INSERT INTO emp(empno,ename) VALUES (1289,’Harry’);

    E

    SELECT ename FROM emp WHERE job=’CLERK’ FOR UPDATE OF empno


    正确答案: E,B
    解析: 暂无解析

  • 第12题:

    单选题
    Management has asked you to calculate the value 12*salary* commission_pct for all the employees in the EMP table. The EMP table contains these columns: LAST NAME VARCNAR2(35) NOT NULL SALARY NUMBER(9,2) NOT NULL COMMISION_PCT NUMBER(4,2) Which statement ensures that a value is displayed in the calculated columns for all employees?()
    A

    SELECT last_name, 12*salary* commission_pct FROM emp;

    B

    SELECT last_name, 12*salary* (commission_pct,0) FROM emp;

    C

    SELECT last_name, 12*salary*(nvl(commission_pct,0)) FROM emp;

    D

    SELECT last_name, 12*salary*(decode(commission_pct,0)) FROM emp;


    正确答案: B
    解析: 暂无解析

  • 第13题:

    下列哪个操作可以将表中的数据删除,并且不需要回滚删除后回收其所占有的空间,但表定义保留()

    A.DELETE FROM EMP;

    B.TUNCATE TABLE EMP;

    C.TUNCATE TABLE EMP REUSE STORAGE;

    D.DROP TABLE EMP;

    E.以上所述都不正确


    参考答案:B

  • 第14题:

    下列哪个操作可以将表中的数据删除,并且不需要回滚删除后回收其所占有的空间,但表定义保留()

    • A、DELETE FROM EMP;
    • B、TUNCATE TABLE EMP;
    • C、TUNCATE TABLE EMP REUSE STORAGE;
    • D、DROP TABLE EMP;
    • E、以上所述都不正确

    正确答案:B

  • 第15题:

    You executed the following FLASHBACK TABLE command: FLASHBACK TABLE emp TO TIMESTAMP (’11:45’,’hh12:mi’); Which two statements are correct? ()

    • A、 The FLASHBACK TABLE statement will not be written to the alert log file.
    • B、 The EMP table that was dropped by mistake from the database will be restored.
    • C、 The changes made to the EMP table since the specified time will be undone.
    • D、 The FLASHBACK TABLE statement will not maintain the existing indexes on the EMP table.
    • E、 The FLASHBACK TABLE statement will be executed within a single transaction.
    • F、 The list of transactions that have modified the EMP table since the specified time will be displayed.

    正确答案:C,E

  • 第16题:

    单选题
    View the Exhibit and examine the structure of the EMP table. You executed the following command to add a primary key to the EMP table:   ALTER TABLE emp   ADD CONSTRAINT emp_id_pk  PRIMARY KEY (emp_id)   USING INDEX emp_id_idx;   Which statement is true regarding the effect of the command?()
    A

     The PRIMARY KEY is created along with a new index.

    B

     The PRIMARY KEY is created and it would use an existing unique index.

    C

     The PRIMARY KEY would be created in a disabled state because it is using an existing index.

    D

     The statement produces an error because the USING clause is permitted only in the CREATE TABLE command.


    正确答案: D
    解析: 暂无解析

  • 第17题:

    多选题
    In which two scenarios should you issue the following command?() FLASHBACK TABLE SCOTT.EMP TO TIMESTAMP SYSTIMESTAP- INTERVAL ’15’ MINUTE;
    A

    when the schema of the user, SCOTT, was deleted by mistake 15 minutes ago

    B

    when the table EMP of the SCOTT schema was dropped by mistake 15 minutes ago

    C

    when some rows of the table, EMP, in the SCOTT schema were deleted by mistake 15 minutes ago

    D

    when some incorrect values were inserted in the EMP table in the user Scott’s schema during the last 15 minutes

    E

    never, because FLASHBACK TABLE is not a valid command in Oracle 10g.


    正确答案: B,D
    解析: 暂无解析

  • 第18题:

    单选题
    删除emp表的全部数据,但不提交,以下正确的语句是()
    A

    DELETE * FROM. EMP

    B

    DELETE FROM EMP

    C

    TRUNCATE TABLE EMP

    D

    DELETE TABLE EMP


    正确答案: D
    解析: 暂无解析

  • 第19题:

    多选题
    You executed the following FLASHBACK TABLE command: FLASHBACK TABLE emp TO TIMESTAMP (’11:45’,’hh12:mi’); Which two statements are correct?()
    A

    The FLASHBACK TABLE statement will not be written to the alert log file.

    B

    The changes made to the EMP table since the specified time will be undone.

    C

    The EMP table that was dropped by mistake from the database will be restored.

    D

    The FLASHBACK TABLE statement will be executed within a single transaction.

    E

    The FLASHBACK TABLE statement will not maintain the existing indexes on the EMP table.

    F

    The list of transactions that have modified the EMP table since the specified time will be displayed.


    正确答案: C,B
    解析: 暂无解析

  • 第20题:

    单选题
    You are performing the shrink operation on the SCOTT.EMP table. You want to perform the same operation on all dependent objects of the SCOTT.EMP table. What is NOT a prerequisite for the operation?()
    A

     You must enable the row movement on the SCOTT.EMP table.

    B

     You must define the tablespace of the SCOTT.EMP table for automatic segment space management.

    C

     You must use the CASCADE clause in the ALTER TABLE SHRINK SPACE statement.

    D

     You must use the COMPACT clause in the ALTER TABLE SHRINK SPACE statement.


    正确答案: B
    解析: 暂无解析

  • 第21题:

    单选题
    Which is a valid CREATE TABLE statement?()
    A

    CREATE TABLE EMP9$# AS (empid number(2));

    B

    CREATE TABLE EMP*123 AS (empid number(2));

    C

    CREATE TABLE PACKAGE AS (packid number(2));

    D

    CREATE TABLE 1EMP_TEST AS (empid number(2));


    正确答案: D
    解析: 暂无解析

  • 第22题:

    多选题
    User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK, or any data definition language (DDL) command: SQL> SELECT ename FROM emp  2 WHERE job=’CLERK’ FOR UPDATE OF empno;  SCOTT has opened another session to work with the database instance.  Which three operations wouldwait when issued in SCOTT’s second session()
    A

    LOCK TABLE emp IN SHARE MODE;

    B

    LOCK TABLE emp IN EXCLUSIVE MODE;

    C

    UPDATE emp SET sal=sal*1.2 WHERE job=MANAGER;

    D

    INSERT INTO emp(empno,ename) VALUES (1289,’Harry’);

    E

    SELECT ename FROM emp WHERE job=’CLERK’ FOR UPDATE OF empno;


    正确答案: C,E
    解析: 暂无解析

  • 第23题:

    单选题
    Which SQL statement defines the FOREIGN KEY constraint on the DEPTNO column of the EMP table?()
    A

    CREATE TABLE EMP (empno NUMBER(4), ename VARCNAR2(35), deptno NUMBER(7,2) NOT NULL CONSTRAINT emp_deptno_fk FOREIGN KEY deptno REFERENCES dept deptno);

    B

    CREATE TABLE EMP (empno NUMBER(4), ename VARCNAR2(35), deptno NUMBER(7,2) CONSTRAINT emp_deptno_fk REFERENCES dept (deptno));

    C

    CREATE TABLE EMP (empno NUMBER(4) ename VARCHAR2(35), deptno NUMBER(7,2) NOT NULL, CONSTRAINT emp_deptno_fk REFERENCES dept (deptno) FOREIGN KEY (deptno));

    D

    CREATE TABLE EMP (empno NUMBER(4), ename VARCNAR2(35), deptno NUMBER(7,2) FOREIGN KEY CONSTRAINT emp deptno fk REFERENCES dept (deptno));


    正确答案: C
    解析: 暂无解析

  • 第24题:

    单选题
    EXHIBIT, Emp Table Exhibit A Exhibit B Examine the data from the EMP table. Evaluate this SQL statement: SELECT * FROM emp WHERE emp _ id = 3); WHERE commission = (SELECT commission FROM emp What is the result when the query is executed?()
    A

    Exhibit A

    B

    Exhibit B 

    C

    The query returns no rows 

    D

    The query fails because the outer query is retrieving more than one column

    E

    The query fails because both the inner and outer queries are retrieving data from the same table.


    正确答案: B
    解析: 暂无解析