QuestionQ149

VerifiedProactive Performance Management

You find the following query being used in your Oracle 12c database:

Question Image

Which method is used by the optimizer to limit the rows returned?

Explanation

Oracle implements a FETCH FIRST ... PERCENT ROWS ONLY row limit through an internal view/query transformation. The generated view supplies the row-number and total-row information needed to calculate the requested percentage, and a filter limits the result to that percentage of the total rows. Oracle documents that the row-limiting clause can return a specified percentage of the total selected rows.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!