Free 1Z0-071 Exam Braindumps

Pass your Oracle Database 12c SQL exam with these free Questions and Answers

Page 3 of 64
QUESTION 6

n the customers table, the CUST_CITY column contains the value 'Paris' for the CUST_FIRST_NAME 'Abigail'.
Evaluate the following query:
1Z0-071 dumps exhibit
What would be the outcome?

  1. A. Abigail PA
  2. B. Abigail Pa
  3. C. Abigail IS
  4. D. An error message

Correct Answer: B

QUESTION 7

View the exhibit and examine the structure in ORDERS and ORDER_ITEMS tables.
1Z0-071 dumps exhibit
You need to create a view that displays the ORDER_ID, ORDER_DATE, and the total number of items in each order.
Which CREATE VIEW statement would create the views successfully?

  1. A. CREATE OR REPLACE VIEW ord_vuAS SELECT o.order_id, o.order_date, COUNT (i.line_item_id)FROM orders o JOIN order_items iON (o.order_id = i.order_id)GROUP BY o.order_id, o.order_date;
  2. B. CREATE OR REPLACE VIEW ord_vu (order_id, order_date)AS SELECT o.order_id, o.order_date, COUNT (i.line_item_id)"NO OF ITEMS"FROM orders o JOIN order_items iON (o.order_id = i.order_id)GROUP BY o.order_id, o.order_date;
  3. C. CREATE OR REPLACE VIEW ord_vuAS SELECT o.order_id, o.order_date, COUNT (i.line_item_id)"NO OF ITEMS"FROM orders o JOIN order_items iON (o.order_id = i.order_id)GROUP BY o.order_id, o.order_date;
  4. D. CREATE OR REPLACE VIEW ord_vuAS SELECT o.order_id, o.order_date, COUNT (i.line_item_id)||"NO OF ITEMS"FROM orders o JOIN order_items iON (o.order_id = i.order_id)GROUP BY o.order_id, o.order_dateWHITH CHECK OPTION;

Correct Answer: C

QUESTION 8

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

  1. A. ALTER TABLE SPLIT PARTITION
  2. B. ALTER TABLE MERGE PARTITION
  3. C. ALTER TABLE TRUNCATE PARTITION
  4. D. ALTER TABLE ADD PARTITION
  5. E. ALTER TABLE DROP PARTITION
  6. F. ALTER TABLE MOVE PARTITION

Correct Answer: CE

QUESTION 9

View the Exhibit and examine the details of the PRODUCT_INFORMATION table.
1Z0-071 dumps exhibit
You have the requirement to display PRODUCT_NAME and LIST_PRICE from the table where the CATEGORYJD column has values 12 or 13, and the SUPPLIER_ID column has the value 102088. You executed the following SQL statement:
SELECT product_name, list_price FROM product_information
WHERE (category_id = 12 AND category_id = 13) AND supplier_id = 102088; Which statement is true regarding the execution of the query?

  1. A. It would not execute because the entire WHERE clause is not enclosed within parentheses.
  2. B. It would execute but would return no rows.
  3. C. It would not execute because the same column has been used twice with the AND logical operator.
  4. D. It would execute and return the desired.

Correct Answer: B

QUESTION 10

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?

  1. A. When the BOOKS table is dropped, the BOOK_TRANSACTIONS table is dropped.
  2. B. When the BOOKS table is dropped, all the rows in the BOOK_TRANSACTIONS table are deleted butthe table structure is retained.
  3. C. When a row in the BOOKS table is deleted, the rows in the BOOK_TRANSACTIONS table whose BOOK_ID matches that of the deleted row in the BOOKS table are also deleted.
  4. D. When a value in the BOOKS.BOOK_ID column is deleted, the corresponding value is updated in the BOOKS_TRANSACTIONS.BOOK_ID column.

Correct Answer: C

Page 3 of 64

Post your Comments and Discuss Oracle 1Z0-071 exam with other Community members: