title: Why does Oracle use DBMS_STATS.GATHER_TABLE_STATS?
body: <p>I found documents explaining that Oracle uses these for performance tuning etc, but didn't quite understand what does it actually do. </p>
  
  <p>Can someone explain it to me in simple words with very basic example?</p>