I'm hoping they're all in the same table because if the hierarchy increases you will otherwise have to include a new table in the query.
If this is the case you could make a recursive function (in ASP or on the db) like:
Code:
FUNCTION AmountSpent (@username)
AS
BEGIN
SELECT @result = SUM(SpendMoney + AmountSpent(employee_name))
FROM myTable
WHERE manager = @username
RETURN @result
END
It's a bit pseudo codish but I hope you catch my drift.
In
red is the function calling itself to calculate a lever deeper in the hierarchy.
Warning: it's possible you can hit some max recursion limit...