Home » Oracle » 1z0-117 » Which statement is true about the usage of the STAR_TRANSFORMATION hint in a query?
Which statement is true about the usage of the STAR_TRANSFORMATION hint in a query?
A. The optimizer always uses a plan in which the transformation is used.
B. The optimizer uses transformation only if the cost is less than a query executing without transformation.
C. The optimizer always generates subqueries to transform a query.
D. The optimizer always uses bitmap indexes on the primary key column for any dimension table to transform a query.
Correct Answer: A
Explanation/Reference:
The STAR_TRANSFORMATION hint makes the optimizer use the best plan in which the transformation has been used. Without the hint, the optimizer could make a cost-based decision to use the best plan generated without the transformation, instead of the best plan for the transformed query.
Even if the hint is given, there is no guarantee that the transformation will take place. The optimizer only generates the subqueries if it seems reasonable to do so. If no subqueries are generated, then there is no transformed query, and the best plan for the untransformed query is used, regardless of the hint.
Reference: OracleDatabase SQL Language Reference,STAR_TRANSFORMATION Hint
Download Printable PDF. VALID exam to help you PASS.
|
|