For aggregration in SQL you can use this
SELECT AVG(Amount) FROM Expenses
But if your question meant different that this then please clarify more or you can add one example
Hope this helps if yes then accept and vote the answer otherwise revert back with your queries
--Rahul D.