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.