7. The computer-readable program code embedded in the memory of claim 1 , wherein the list of candidate queries is determined by comparing the new query against each of the plurality of cached queries.
7. The computer-readable program code embedded in the memory of claim 1 , wherein the list of candidate queries is determined by comparing the new query against each of the plurality of cached queries. 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.