This document discusses why SQL optimizers sometimes produce suboptimal query plans. It begins by introducing concepts like selectivity, cardinality, and histograms which are important for query optimization. It then describes issues like correlation between predicates that can cause underestimation of cardinality. The document recommends gathering statistics on columns and indexes, using histograms, and explains how Oracle 11g's extended statistics feature can help address correlation problems.