You can do it in a separate query, using the appropriate SUM([yourfield]) or AVG([yourfield]) aggregate functions. Use GROUP BY to aggregate the columns desired.
If you need more help, post more details about what you're trying to accomplish and someone will try to point you in the right direction.
Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill