nerdexam
Oracle

1Z0-054 · Question #202

View Exhibit1 to examine the description of the CUSTOMERS table. You observed that optimizer selectivity is not accurate when the CUST_STATE_PROVINCE and COUNTRY_ID columns are used together in the…

The correct answer is C. Create extended statistics for the CUST_STATE_PROVINCE and COUNTRY_ID columns. See the full explanation below for the reasoning.

Question

View Exhibit1 to examine the description of the CUSTOMERS table. You observed that optimizer selectivity is not accurate when the CUST_STATE_PROVINCE and COUNTRY_ID columns are used together in the WHERE clause of a query. View Exhibit2 to examine the query execution plan and the commands executed to gather the statistics. The optimizer predicts that 20 rows will be processed rather than the 3,341 rows, which is the actual number of rows returned from the table. What can you do to make the optimizer detect the actual number of rows?

Exhibits

1Z0-054 question #202 exhibit 1
1Z0-054 question #202 exhibit 2

Options

  • ASet the STATISTICS_LEVEL parameter to ALL.
  • BSet the OPTIMIZER_USE_PENDING_STATISTICS parameter to FALSE.
  • CCreate extended statistics for the CUST_STATE_PROVINCE and COUNTRY_ID columns.
  • DIncrease the STALE_PERCENT value for the CUSTOMERS table by using the

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    13% (3)
  • C
    74% (17)
  • D
    9% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-054 Practice