SQLSEVER统计用户人数

阅读 64

2023-07-18

SQLSEVER统计用户人数_SUM

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

精彩评论(0)

0 0 举报