Managing Statistics for Optimal Query Performance