Oracle 1Z0-071 Exam (page: 13)
Oracle Database SQL
Updated on: 01-Sep-2025

Viewing Page 13 of 77

Which statement is true regarding the INTERSECT operator?

  1. The names of columns in all SELECT statements must be identical.
  2. It ignores NULL values.
  3. Reversing the order of the intersected tables alters the result.
  4. The number of columns and data types must be identical for all SELECT statements in the query.

Answer(s): D

Explanation:

INTERSECT Returns only the rows that occur in both queries' result sets, sorting them and removing duplicates.
The columns in the queries that make up a compound query can have different names, but the output result set will use the names of the columns in the first query.



Examine the following query:

SQL> SELECT prod_id, amount_sold
FROM sales
ORDER BY amount_sold
FETCH FIRST 5 PERCENT ROWS ONLY;

What is the output of this query?

  1. It displays 5 percent of the products with the highest amount sold.
  2. It displays the first 5 percent of the rows from the SALES table.
  3. It displays 5 percent of the products with the lowest amount sold.
  4. It results in an error because the ORDER BY clause should be the last clause.

Answer(s): C


Reference:

https://oracle-base.com/articles/12c/row-limiting-clause-for-top-n-queries-12cr1



The first DROP operation is performed on PRODUCTS table using this command:
DROP TABLE products PURGE;

Then a FLASHBACK operation is performed using this command:
FLASHBACK TABLE products TO BEFORE DROP;

Which is true about the result of the FLASHBACK command?

  1. It recovers only the table structure.
  2. It recovers the table structure, data, and the indexes.
  3. It recovers the table structure and data but not the related indexes.
  4. It is not possible to recover the table structure, data, or the related indexes.

Answer(s): D


Reference:

https://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_9003.htm



These are the steps for a correlated subquery, listed in random order:

1. The WHERE clause of the outer query is evaluated.
2. A candidate row is fetched from the table specified in the outer query.
3. This is repeated for the subsequent rows of the table, until all the rows are processed.
4. Rows are returned by the inner query, after being evaluated with the value from the candidate row in the outer query.

Which is the correct sequence in which the Oracle server evaluates a correlated subquery?

  1. 2,1,4,3
  2. 4,1,2,3
  3. 4,2,1,3
  4. 2,4,1,3

Answer(s): D


Reference:

http://rajanimohanty.blogspot.co.uk/2014/01/correlated-subquery.html



Evaluate the following query:
SQL> SELECT TRUNC (ROUND(156.00, -1),-1)
FROM DUAL;

What would be the outcome?

  1. 150
  2. 200
  3. 160
  4. 16
  5. 100

Answer(s): C


Reference:

https://docs.oracle.com/cd/B19306_01/server.102/b14200/functions135.htm https://docs.oracle.com/cd/B28359_01/olap.111/b28126/dml_functions_2127.htm



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