【Oracle 12c】CUUG OCP认证071考试原题解析(32)

32.choose the best answer

View the Exhibit and examine the data in EMP and DEPT tables.

In the DEPT table, DEPTNO is the PRIMARY KEY.

In the EMP table, EMPNO is the PRIMARY KEY and DEPTNO is the FOREIGN KEY referencing

the DEPTNO column in the DEPT table.

What would be the outcome of the following statements executed in the given sequence?

DROP TABLE emp;

FLASHBACK TABLE emp TO BEFORE DROP;

INSERT INTO emp VALUES (2,‘SCOTT‘, 10);

INSERT INTO emp VALUES (3,‘KING‘, 55);

A) Both the INSERT statements would succeed because none of the constraints on the table are automatically retrieved when the table is flashed back.

B) Only the second INSERT statement would succeed because all the constraints except referential integrity constraints that reference other tables are retrieved automatically after the table is flashed back.

C) Both the INSERT statements would fail because all constraints are automatically retrieved when the table is flashed back.

D) Only the first INSERT statement would succeed because all the constraints except the primary key constraint are automatically retrieved after a table is flashed back.

Answer:B

(解析:除了引用其他表的引用完整性约束之外,所有约束在表被闪回之后自动恢复,已经做过实验)

原文地址:https://blog.51cto.com/13854012/2353411

时间: 2024-09-30 00:25:14

【Oracle 12c】CUUG OCP认证071考试原题解析(32)的相关文章

【Oracle 12c】CUUG OCP认证071考试原题解析(30)

30.choose the best answer Examine the commands used to create DEPARTMENT_DETAILS and COURSE_DETAILS: SQL> CREATE TABLE DEPARTMENT_DETAILS (DEPARTMENT_ID NUMBER PRIMARY KEY, DEPARTMENT_NAME VARCHAR2(50) , HOD VARCHAR2(50)); SQL> CREATE TABLE COURSE_D

【Oracle 12c】CUUG OCP认证071考试原题解析(35)

35.choose the best answer View the Exhibit and examine the description of the EMPLOYEES table. Evaluate the following SQL statement: SELECT first_name, employee_id, NEXT_DAY(ADD_MONTHS(hire_date,6),1) "Review" FROM employees; The query was writt

【12c OCP】CUUG OCP认证071考试原题解析(34)

34.choose two View the Exhibit and examine the structure of the PRODUCT_INFORMATION and INVENTORIES tables. You have a requirement from the supplies department to give a list containing PRODUCT_ID, SUPPLIER_ID, and QUANTITY_ON_HAND for all the produc

【12c OCP】CUUG OCP认证071考试原题解析(33)

33.choose the best answer View the Exhibit and examine the structure of the ORDER_ITEMS table. Examine the following SQL statement: SELECT order_id, product_id, unit_price FROM order_items WHERE unit_price = (SELECT MAX(unit_price) FROM order items G

【12c OCP】CUUG OCP认证071考试原题解析(36)

36.choose the best answer View the Exhibits and examine the structures of the PRODUCTS, SALES, and CUSTOMERS tables. You issue the following query: SQL>SELECT p.prod_id,prod_name,prod_list_price, quantity_sold,cust_last_name FROM products p NATURAL J

【2019年8月】OCP 071认证考试最新版本的考试原题-第32题

choose three Examine this SQL statement: SELECT custid, cus last_name "Last Name" FROM customers WHERE country_id = 10 UNION SELECT cust_id CUST_NO, cust_last_name FROM customers WHERE country_id = 30 Identify three ORDER BY clauses, any one of

【第46题】【062题库】2019年OCP认证062考试新题

46题.choose two Examine this command: SQL> ALTER SYSTEM SET ENABLE_DDL_LOGGING=TRUE; Which two statements are true? A) All DDL statements are logged in to a text file in Automatic Diagnostic Repository (ADR) home. B) The Alert Log still contains some

【第53题】【062题库】2019年OCP认证062考试新题

53题.choose two The HR user executes the following query on the EMPLOYEES table but does not issue COMMIT, ROLLBACK, or any data definition language (DDL) command after that: SQL> SELECT job FROM employees WHERE job='CLERK' FOR UPDATE OF empno; HR the

【第60题】【062题库】2019年OCP认证062考试新题

60题.choose one When does a database checkpoint occur? A) When there is an online redo log switch. B) When the SHUTDOWN ABORT command is issued. C) When a user session terminates abnormally. D) When a server process terminates abnorthally. Answer:A (解