Free Oracle 1Z0-071 Exam Braindumps (page: 17)

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



Viewing page 17 of 95
Viewing questions 65 - 68 out of 380 questions



Post your Comments and Discuss Oracle 1Z0-071 exam prep with other Community members:

1Z0-071 Exam Discussions & Posts