QuestionQ109

VerifiedManaging Optimizer Statistics

You need to gather top-frequency histogram statistics for the SALES.STORE_ID column.

Review the statements and their output:

Question Image

Which statement must be used to gather the statistics?

Explanation

A top-frequency histogram is created when the number of distinct values exceeds the requested number of buckets, the most frequent n values meet Oracle’s threshold, and estimate_percent uses AUTO_SAMPLE_SIZE. Specifying FOR COLUMNS STORE_ID SIZE 254 requests the required 254-bucket histogram while retaining the default automatic sample size. An explicit estimate_percent => 20 cannot produce a top-frequency histogram.

Learn more

Community Discussion

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