Free 1Z0-071 Exam Dumps

Question 36

You execute the SQL statement: SQL> CREATE TABLE citizens
(citizen_id CHAR (10) PRIMARY KEY, last_name VARCHAR2 (50) NOT NULL, first_name VARCHAR2 (50),
address VARCHAR2 (100),
city VARCHAR2 (30) DEFAULT ‘SEATTLE’ NOT NULL,
CONSTRAINT cnames CHECK (first_name<>last_name) ); What is the outcome?

Correct Answer:A

Question 37

View the exhibit and examine the structure of the SALES, CUSTOMERS, PRODUCTS and TIMES tables.
1Z0-071 dumps exhibit
The PROD_ID column is the foreign key in the SALES tables, which references the PRODUCTS table.
Similarly, the CUST_ID and TIME_ID columns are also foreign keys in the SALES table referencing the CUSTOMERS and TIMES tables, respectively.
Evaluate the following CREATE TABLE command:
CREATE TABLE new_sales (prod_id, cust_id, order_date DEFAULT SYSDATE)
AS
SELECT prod_id, cust_id, time_id FROM sales;
Which statement is true regarding the above command?

Correct Answer:A

Question 38

Which statement is true about an inner join specified in the WHERE clause of a query?

Correct Answer:C

Question 39

View the exhibit and examine the structure of the CUSTOMERS table.
1Z0-071 dumps exhibit
Which two tasks would require subqueries or joins to be executed in a single statement?

Correct Answer:AE

Question 40

View the exhibit and examine the structure of ORDERS and CUSTOMERS tables. ORDERS
Name Null? Type
ORDER_ID NOT NULL NUMBER(4) ORDER_DATE NOT NULL DATE ORDER_MODE VARCHAR2(8) CUSTOMER_ID NOT NULL NUMBER(6) ORDER_TOTAL NUMBER(8, 2) CUSTOMERS
Name Null? Type
CUSTOMER_ID NOT NULL
NUMBER(6) CUST_FIRST_NAME NOT NULL VARCHAR2(20) CUST_LAST_NAME NOT NULL VARCHAR2(20) CREDIT_LIMIT NUMBER(9,2) CUST_ADDRESS VARCHAR2(40)
Which INSERT statement should be used to add a row into the ORDERS table for the customer whose CUST_LAST_NAME is Roberts and CREDIT_LIMIT is 600? Assume there exists only one row with CUST_LAST_NAME as Roberts and CREDIT_LIMIT as 600.

Correct Answer:C