SQLSEVER统计用户人数_Group By

select StatisDate,SUM(FillMoneyAmount) as FillMoneyAmount ,SUM(WithdrawAmount) as WithdrawAmount,SUM(BackWaterAmount)as BackWaterAmount,SUM(BonusAmount) as BonusAmount,

sum(case when FillMoneyCount>0 then 1 else 0 end ) as FillMoneyCount,sum(case when BackWaterCount>0 then 1 else 0 end) as BackWaterCount

from [dbo].[S_Member_Fund_Static]  group by StatisDate order by StatisDate desc