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

Viewing Page 2 of 77

Which two statements are true regarding constraints? (Choose two)

  1. A constraint is enforced only for an INSERT operation on a table.
  2. A foreign key cannot contain NULL values.
  3. A column with the UNIQUE constraint can store NULLS.
  4. You can have more than one column in a table as part of a primary key.

Answer(s): C,D



Evaluate the following statement.


Which statement is true regarding the evaluation of rows returned by the subquery in the INSERT statement?

  1. They are evaluated by all the three WHEN clauses regardless of the results of the evaluation of any other WHEN clause.
  2. They are evaluated by the first WHEN clause. If the condition is true, then the row would be evaluated by the subsequent WHEN clauses.
  3. They are evaluated by the first WHEN clause. If the condition is false, then the row would be evaluated by the subsequent WHEN clauses.
  4. The insert statement would give an error because the ELSE clause is not present for support in case none of WHEN clauses are true.

Answer(s): A


Reference:

http://psoug.org/definition/WHEN.htm



Examine the structure of the MEMBERS table:


You want to display details of all members who reside in states starting with the letter A followed by exactly one character. Which SQL statement must you execute?

  1. SELECT * FROM MEMBERS WHERE state LIKE '%A_';
  2. SELECT * FROM MEMBERS WHERE state LIKE 'A_';
  3. SELECT * FROM MEMBERS WHERE state LIKE 'A_%';
  4. SELECT * FROM MEMBERS WHERE state LIKE 'A%';

Answer(s): B



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



Viewing Page 2 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