Statistics & Cost Estimation

Published July 26, 2025 By Sai Sree Ram Gundepudi

Statistics & Cost Estimation

The optimizer uses statistics to choose the best query plan.

EXEC DBMS_STATS.GATHER_TABLE_STATS('HR', 'EMPLOYEES');

Cost estimation considers cardinality, selectivity, and access paths.

Was this solution helpful?

Your feedback helps improve our technical knowledge repository.

Share this article