I have a table that looks something like the following :
PropertyID Amount Type EndDate -------------------------------------------- 1
Try this:
SELECT PropertyId, SUM(Amount) as TOTAL_COSTS FROM MyTable WHERE EndDate IS NULL GROUP BY PropertyId