I assume you want to calculate a running total for the column UnitsConsumed for every projectName:
Select
projectName,
UnitsConsumed,
SUM(UnitsConsumed) over (partition by projectName order by reportingFromDate)
FROM waterConsumption
If you only want to see Menlo Park or SFO-BAB, you have to filter your result accordingly.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…