Oracle 1Z0-071 Exam (page: 2)
Oracle Database SQL
Updated on: 28-Nov-2025

Viewing Page 2 of 49

You want to display 5 percent of the rows from the SALES table for products with the lowest AMOUNT_SOLD and also want to include the rows that have the same AMOUNT_SOLD even if this causes the output to exceed 5 percent of the rows.
Which query will provide the required result?

  1. SELECT prod_id, cust_id, amount_sold
    FROM sales
    ORDER BY amount_sold
    FETCH FIRST 5 PERCENT ROWS WITH TIES;
  2. SELECT prod_id, cust_id, amount_sold
    FROM sales
    ORDER BY amount_sold
    FETCH FIRST 5 PERCENT ROWS ONLY WITH TIES;
  3. SELECT prod_id, cust_id, amount_sold
    FROM sales
    ORDER BY amount_sold
    FETCH FIRST 5 PERCENT ROWS WITH TIES ONLY;
  4. SELECT prod_id, cust_id, amount_sold
    FROM sales
    ORDER BY amount_sold
    FETCH FIRST 5 PERCENT ROWS ONLY;

Answer(s): A



Examine the structure of the MEMBERS table:



You execute the SQL statement:
SQL > SELECT member_id, ' ' , first_name, ' ' , last_name "ID FIRSTNAME LASTNAME " FROM members;

What is the outcome?

  1. It fails because the alias name specified after the column names is invalid.
  2. It fails because the space specified in single quotation marks after the first two column names is invalid.
  3. It executes successfully and displays the column details in a single column with only the alias column heading.
  4. It executes successfully and displays the column details in three separate columns and replaces only the last column heading with the alias.

Answer(s): D



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



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 2 of 49



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