9. The computer-readable program code embedded in the memory of claim 8 , wherein the one or more aggregates included in the select list of the new query is only rewritten if an exact match is not found in the select list for the cached query against which the new query is being compared.
8. The computer-readable program code embedded in the memory of claim 7 , wherein the comparing includes rewriting the one or more aggregates included in the select list of the new query based on the cached query against which the new query is being compared.