1z1-071 Exam Question 171

Evaluate the following CRTEATE TABLE commands:
CREATE_TABLE orders
(ord_no NUMBER (2) CONSTRAINT ord_pk PRIMARY KEY,
ord_date DATE,
cust_id NUMBER (4) );
CREATE TABLE ord_items
(ord _no NUMBER (2),
item_no NUMBER(3),
qty NUMBER (3) CHECK (qty BETWEEEN 100 AND 200),
expiry_date date CHECK (expiry_date> SYSDATE),
CONSTRAINT it_pk PRIMARY KEY (ord_no, item_no),
CONSTARAINT ord_fk FOREIGN KEY (ord_no) REFERENCES orders (ord_no) );
Why would the ORD_ITEMS table not get created?
  • 1z1-071 Exam Question 172

    View the exhibit and examine the descriptions of the DEPT and LOCATIONS tables.
    You want to update the CITY column of the DEPT table for all the rows with the corresponding value in the CITY column of the LOCATIONS table for each department.
    Which SQL statement would you execute to accomplish the task?
  • 1z1-071 Exam Question 173

    Examine the description of the EMPLOYEEStable:

    Examine this query:

    Which line produces an error?
  • 1z1-071 Exam Question 174

    The BOOKS_TRANSACTIONStable exists in your database.
    SQL>SELECT * FROM books_transactions ORDER BY 3;
    What is the outcome on execution?
  • 1z1-071 Exam Question 175

    Examine the structure of the PROMOTIONS table: (Choose the best answer.)

    Management requires a report of unique promotion costs in each promotion category.
    Which query would satisfy this requirement?