1z0-071 Exam Question 1

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? (Choose three.)
  • 1z0-071 Exam Question 2

    Which three statements are true regarding group functions? (Choose three.)
  • 1z0-071 Exam Question 3

    Evaluate the following statement.

    Which statement is true regarding the evaluation of rows returned by the subquery in the INSERT statement?
  • 1z0-071 Exam Question 4

    Which two statements cause changes to the data dictionary?
  • 1z0-071 Exam Question 5

    Which three statements are true regarding the WHEREand HAVINGclauses in a SQL statement? (Choose three.)