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

Viewing Page 3 of 49

Examine the business rule:
Each student can work on multiple projects and each project can have multiple students.

You must design an Entity Relationship (ER) model for optimal data storage and allow for generating reports in this format:

STUDENT_ID FIRST_NAME LAST_NAME PROJECT_ID PROJECT_NAME PROJECT_TASK

Which two statements are true? (Choose two.)

  1. The ER must have a 1-to-many relationship between the STUDENTS and PROJECTS entities.
  2. The ER must have a many-to-many relationship between the STUDENTS and PROJECTS entities that must be resolved into 1-to-many relationships.
  3. STUDENT_ID must be the primary key in the STUDENTS entity and foreign key in the PROJECTS entity.
  4. PROJECT_ID must be the primary key in the PROJECTS entity and foreign key in the STUDENTS entity.
  5. An associative table must be created with a composite key of STUDENT_ID and PROJECT_ID, which is the foreign key linked to the STUDENTS and PROJECTS entities.

Answer(s): B,E


Reference:

http://www.oracle.com/technetwork/issue-archive/2011/11-nov/o61sql-512018.html



View the Exhibit and examine the details of PRODUCT_INFORMATION table.


You have the requirement to display PRODUCT_NAME from the table where the CATEGORY_ID column has values 12 or 13, and the SUPPLIER_ID column has the value 102088. You executed the following SQL statement:

SELECT product_name
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. It would not execute because the same column has been used in both sides of the AND logical operator to form the condition.
  2. It would not execute because the entire WHERE clause condition is not enclosed within the parentheses.
  3. It would execute and the output would display the desired result.
  4. It would execute but the output would return no rows.

Answer(s): D



Which two statements are true regarding the EXISTS operator used in the correlated subqueries? (Choose two.)

  1. The outer query stops evaluating the result set of the inner query when the first value is found.
  2. It is used to test whether the values retrieved by the inner query exist in the result of the outer query.
  3. It is used to test whether the values retrieved by the outer query exist in the result set of the inner query.
  4. The outer query continues evaluating the result set of the inner query until all the values in the result set are processed.

Answer(s): A,C


Reference:

http://www.techonthenet.com/oracle/exists.php



View the exhibit and examine the structure of the STORES table.

You must display the NAME of stores along with the ADDRESS, START_DATE, PROPERTY_PRICE, and the projected property price, which is 115% of property price.

The stores displayed must have START_DATE in the range of 36 months starting from 01-Jan-2000 and above. Which SQL statement would get the desired output?

  1. Option A
  2. Option B
  3. Option C
  4. Option D

Answer(s): D



The BOOKS_TRANSACTIONS table exists in your database.
SQL>SELECT * FROM books_transactions ORDER BY 3;

What is the outcome on execution?

  1. The execution fails unless the numeral 3 in the ORDER BY clause is replaced by a column name.
  2. Rows are displayed in the order that they are stored in the table only for the three rows with the lowest values in the key column.
  3. Rows are displayed in the order that they are stored in the table only for the first three rows.
  4. Rows are displayed sorted in ascending order of the values in the third column in the table.

Answer(s): D



Examine the command:


What does ON DELETE CASCADE imply?

  1. When the BOOKS table is dropped, the BOOK_TRANSACTIONS table is dropped.
  2. When the BOOKS table is dropped, all the rows in the BOOK_TRANSACTIONS table are deleted but the table structure is retained.
  3. 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. When a value in the BOOKS.BOOK_ID column is deleted, the corresponding value is updated in the
    BOOKS_TRANSACTIONS.BOOK_ID column.

Answer(s): C



View the exhibit and examine the structure of the EMPLOYEES table.


You want to display all employees and their managers having 100 as the MANAGER_ID. You want the output in two columns: the first column would have the LAST_NAME of the managers and the second column would have LAST_NAME of the employees.

Which SQL statement would you execute?

  1. SELECT m.last_name "Manager", e.last_name "Employee"
    FROM employees m JOIN employees e
    ON m.employee_id = e.manager_id
    WHERE m.manager_id = 100;
  2. SELECT m.last_name "Manager", e.last_name "Employee"
    FROM employees m JOIN employees e
    ON m.employee_id = e.manager_id
    WHERE e.manager_id = 100;
  3. SELECT m.last_name "Manager", e.last_name "Employee"
    FROM employees m JOIN employees e
    ON e.employee_id = m.manager_id
    WHERE m.manager_id = 100;
  4. SELECT m.last_name "Manager", e.last_name "Employee"
    FROM employees m JOIN employees e
    WHERE m.employee_id = e.manager_id AND e.manager_id = 100

Answer(s): B



Which three statements are true about multiple-row subqueries?

  1. They can contain a subquery within a subquery.
  2. They can return multiple columns as well as rows.
  3. They cannot contain a subquery within a subquery.
  4. They can return only one column but multiple rows.
  5. They can contain group functions and GROUP BY and HAVING clauses.
  6. They can contain group functions and the GROUP BY clause, but not the HAVING clause.

Answer(s): A,B,E



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