Free Oracle 1Z0-071 Exam Braindumps (page: 5)

View the Exhibit and examine the structure of ORDERS and ORDER_ITEMS tables.
ORDER_ID is the primary key in the ORDERS table. It is also the foreign key in the ORDER_ITEMS table wherein it is created with the ON DELETE CASCADE option.
Which DELETE statement would execute successfully?

  1. DELETE orders o, order_items i
    WHERE o.order_id = i.order_id;
  2. DELETE
    FROM orders
    WHERE (SELECT order_id FROM order_items);
  3. DELETE orders
    WHERE order_total < 1000;
  4. DELETE order_id FROM orders
    WHERE order_total < 1000;

Answer(s): C



View the Exhibit and examine the structure of CUSTOMERS table.


Using the CUSTOMERS table, you need to generate a report that shows an increase in the credit limit by 15% for all customers. Customers whose credit limit has not been entered should have the message "Not Available" displayed.

Which SQL statement would produce the required result?

  1. SELECT NVL (TO CHAR(cust_credit_limit * .15), 'Not Available') "NEW CREDIT"
    FROM customers;
  2. SELECT TO_CHAR (NVL(cust_credit_limit * .15), 'Not Available') "NEW CREDIT"
    FROM customers;
  3. SELECT NVL(cust_credit_limit * .15), 'Not Available') "NEW CREDIT"
    FROM customers;
  4. SELECT NVL(cust_credit_limit), 'Not Available') "NEW CREDIT"
    FROM customers;

Answer(s): A



View the exhibit and examine the structures of the EMPLOYEES and DEPARTMENTS tables.


You want to update EMPLOYEES table as follows:
-Update only those employees who work in Boston or Seattle (locations 2900 and 2700).
-Set department_id for these employees to the department_id corresponding to London (location_id 2100).
-Set the employees' salary in location_id 2100 to 1.1 times the average salary of their department.
-Set the employees' commission in location_id 2100 to 1.5 times the average commission of their department.

You issue the following command:


What is outcome?

  1. It generates an error because multiple columns (SALARY, COMMISSION) cannot be specified together in an UPDATE statement.
  2. It generates an error because a subquery cannot have a join condition in a UPDATE statement.
  3. It executes successfully and gives the desired update
  4. It executes successfully but does not give the desired update

Answer(s): D



Evaluate the following two queries:

Which statement is true regarding the above two queries?

  1. Performance would improve in query 2 only if there are null values in the CUST_CREDIT_LIMIT column.
  2. There would be no change in performance.
  3. Performance would degrade in query 2.
  4. Performance would improve in query 2.

Answer(s): B



Viewing page 5 of 95
Viewing questions 17 - 20 out of 380 questions



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

1Z0-071 Exam Discussions & Posts