OCP 12c最新考试原题及答案(071-5)

5、(4-12) choose two:

You executed the following CREATE TABLE statement that resulted in an error:

SQL> CREATE TABLE employees(

emp_id NUMBER(10) PRIMARY KEY,

ename VARCHAR2(20),

email NUMBER(3) UNIQUE,

address VARCHAR2(500),

phone VARCHAR2 (20),

resume LONG,

hire_date DATE,

remarks LONG,

dept_id NUMBER(3) CONSTRAINT emp_dept_id_fk REFERENCES departments(dept_id) ,

CONSTRAINT ename_nn NOT NULL(ename));

Identify two reasons for the error.

A) The PRIMARY KEY constraint in the EMP_ID column must have a name and must be defined at the

table level only.

B) The FOREIGN KEY keyword is missing in the constraint definition.

C) Only one LONG column can be used per table.

D) FOREIGN KEY defined on the DEPT_ID column must be at the table level only.

E) The NOT NULL constraint on the ENAME column must be defined at the column level.

Answer:CE

原文地址:http://blog.51cto.com/13854012/2349847

时间: 2024-08-30 14:24:42

OCP 12c最新考试原题及答案(071-5)的相关文章

OCP 12c最新考试原题及答案(071-4)

4.(4-11) choose two:View the Exhibit and examine the data in the PRODUCT_INFORMATION table.Which two tasks would require subqueries? (Choose two.) A) displaying all supplier IDs whose average list price is more than 500B) displaying the total number

OCP 12c最新考试原题及答案(071-7)

7.(5-1) choose two:View the Exhibit and examine the structure of the PRODUCTS table.Which two tasks would require subqueries? A) Display the minimum list price for each product status.B) Display the total number of products supplied by supplier 102 a

【第39题】2019年OCP认证12C题库062考试最新考试原题

39题.choose two You configured the Fast Recovery Area (FRA) for your database. The database instance is in ARCHIVELOG mode. The default location for the archived redo log files is the FRA. Which two files are removed automatically if space is required

【OCP认证12c题库】CUUG 071题库考试原题及答案(25)

choose the best answer Evaluate the following SQL statement: ALTER TABLE hr.emp SET UNUSED (mgr_id); Which statement is true regarding the effect of the above SQL statement? A) Any views created on the EMP table that include the MGR_ID column would b

【OCP认证12c题库】CUUG 071题库考试原题及答案(26)

26.choose two Examine the structure of the PRODUCTS table. Which two statements are true? A) EXPIRY_DATE always stores date and time in character format B) PRICE can store a maximum of eight digits and two decimals. C) PRODUCT_PIC can store only vide

【OCP认证12c题库】CUUG 071题库考试原题及答案(28)

28.choose the best answer Evaluate the following SQL statement: SQL> SELECT promo_id, promo_category FROM promotions WHERE promo_category = 'Internet' ORDER BY 2 DESC UNION SELECT promo_id, promo_category FROM promotions WHERE promo_category = 'TV' U

【OCP认证12c题库】CUUG 071题库考试原题及答案(27)

27.choose two The SQL statements executed in a user session are as follows: SQL> CREATE TABLE product (pcode NUMBER(2), pname VARCHAR2(10)); SQL> INSERT INTO product VALUES (1, 'pen'); SQL> INSERT INTO product VALUES (2,'pencil'); SQL> SAVEPOI

【第33题】2019年OCP认证12C题库062考试最新考试原题-33

33.choose four Which four statements are true about the components of the Oracle Scheduler? A) A program and schedule can be specified as part of a job definition. B) A job may get started automatically when a window opens. C) A scheduler job can poi

【第34题】2019年OCP认证12C题库062考试最新考试原题-34

34.choose one You want to create a table, DAILY_ORDERS, for an OLTP application, where data should be compressed during both direct-path INSERT and conventional DML. The table will also be used for queries. Which compression option should be used? A)