結果 : running total in sql server based on condition