00:00

QUESTION 26

Examine the create table statements for the stores and sales tables.
SQL> CREATE TABLE stores(store_id NUMBER(4) CONSTRAINT store_id_pk PRIMARY KEY, store_name VARCHAR2(12), store_address VARCHAR2(20), start_date DATE);
SQL> CREATE TABLE sales(sales_id NUMBER(4) CONSTRAINT sales_id_pk PRIMARY KEY, item_id NUMBER(4), quantity NUMBER(10), sales_date DATE, store_id NUMBER(4), CONSTRAINT store_id_fk FOREIGN KEY(store_id) REFERENCES stores(store_id));
You executed the following statement: SQL> DELETE from stores
WHERE store_id=900;
The statement fails due to the integrity constraint error:
ORA-02292: integrity constraint (HR.STORE_ID_FK) violated
Which three options ensure that the statement will execute successfully?

Correct Answer: CDE

QUESTION 27

You execute the following commands: SQL > DEFINE hiredate = '01-APR-2011'
SQL >SELECT employee_id, first_name, salary FROM employees
WHERE hire_date > '&hiredate' AND manager_id >&mgr_id;
For which substitution variables are you prompted for the input?

Correct Answer: D

QUESTION 28

Which two partitioned table maintenance operations support asynchronous Global Index Maintenance in Oracle database 12c?

Correct Answer: CE

QUESTION 29

Examine the structure of the BOOKS_TRANSACTIONS table:
1Z0-071 dumps exhibit
You want to display the member IDs, due date, and late fee as $2 for all transactions. Which SQL statement must you execute?

Correct Answer: B

QUESTION 30

Examine the command:
SQL> ALTER TABLE books_transactions
ADD CONSTRAINT fk_book_id FOREIGN KEY (book_id) REFERENCES books (book_id) ON DELETE CASCADE; What does ON DELETE CASCADE imply?

Correct Answer: C