Oracle 1Z0-071 Exam (page: 3)
Oracle Database SQL
Updated on: 29-Aug-2025

Viewing Page 3 of 77

You issue the following command to drop the PRODUCTS table:
SQL > DROP TABLE products;

Which three statements are true about the implication of this command? (Choose three.)

  1. All data along with the table structure is deleted.
  2. A pending transaction in the session is committed.
  3. All indexes on the table remain but they are invalidated.
  4. All views and synonyms on the table remain but they are invalidated.
  5. All data in the table is deleted but the table structure remains.

Answer(s): A,B,D



You execute the following commands:

SQL > DEFINE hiredate = '01-APR-2011'

SQL >SELECT employee_id, first_name, salary
FROM employees
WHERE hire_date > '&hiredate'
AND manager_id > &mgr_id;

For which substitution variables are you prompted for the input?

  1. none, because no input required
  2. both the substitution variables ''hiredate' and 'mgr_id'.
  3. only hiredate'
  4. only 'mgr_id'

Answer(s): D



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



Viewing Page 3 of 77



Share your comments for Oracle 1Z0-071 exam with other users:

Saravana Kumar TS 12/8/2023 9:49:00 AM

question: 93 which statement is true regarding the result? sales contain 6 columns and values contain 7 columns so c is not right answer.
INDIA